Skip to content

Commit 074194e

Browse files
committed
Update Dockerfile to reduce the volume of docker image
1 parent 8108165 commit 074194e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ RUN mkdir -p /work/bin
99
WORKDIR /work
1010

1111
COPY stack.yaml formura.cabal Setup.hs /work/
12-
RUN stack setup
13-
1412
COPY ./src/ /work/src/
1513
COPY ./exe-src/ /work/exe-src/
1614
COPY LICENSE /work/
17-
RUN stack install \
15+
RUN stack setup \
16+
&& stack install \
1817
&& rm -r .stack-work/ \
1918
&& rm -r /root/.stack
2019

0 commit comments

Comments
 (0)