-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
26 lines (25 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM migamake/haskell-build:8.6
#RUN apt-get update
#RUN apt-get install -y ghc cabal-install
RUN mkdir /src
COPY json-autotype /src/json-autotype
COPY json-alt /src/json-alt
COPY run-haskell-module /src/run-haskell-module
COPY cabal.project /src/cabal.project
COPY stack.yaml /src/stack.yaml
WORKDIR /src/json-alt
RUN ls *.cabal
RUN cabal v2-update
RUN cabal v2-install -j --dependencies-only --keep-going --lib || (sleep 60; cabal v2-install -j --dependencies-only --lib)
RUN cabal v2-install -j --lib
WORKDIR /src/run-haskell-module
RUN ls *.cabal
RUN cabal v2-install -j --dependencies-only --keep-going --lib || (sleep 60; cabal v2-install -j --dependencies-only --lib)
RUN cabal v2-install -j --lib
WORKDIR /src/json-autotype
RUN ls *.cabal
RUN cabal v2-install -j --dependencies-only --keep-going --lib || (sleep 60; cabal v2-install -j --dependencies-only --lib)
RUN cabal v2-install -j exe:json-autotype --symlink-bindir=/usr/bin
RUN mkdir /workdir
WORKDIR /workdir
ENTRYPOINT ["/usr/bin/json-autotype"]