Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 4f94756

Browse files
committed
Edits from tclem
1 parent c46ed1d commit 4f94756

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ RUN cabal new-update
55
# Build our upstream dependencies after copying in only enough to tell cabal
66
# what they are. This will make these layers cache better even as we change the
77
# code of semantic itself.
8-
COPY semantic.cabal /build/
9-
COPY cabal.project /build/
10-
COPY semantic-core/semantic-core.cabal /build/semantic-core/
11-
COPY vendor /build/vendor
8+
COPY semantic.cabal .
9+
COPY cabal.project .
10+
COPY semantic-core/semantic-core.cabal ./semantic-core/
11+
COPY vendor ./vendor
1212
RUN cabal new-build --only-dependencies
1313

1414
# Once the dependencies are built, copy in the rest of the code and compile
@@ -21,13 +21,16 @@ RUN cp $(find dist-newstyle -name semantic -type f -perm -u=x) /usr/local/bin/se
2121

2222
# Create a fresh image containing only the compiled CLI program, so that the
2323
# image isn't bulked up by all of the extra build state.
24-
FROM debian:stretch
24+
FROM debian:stretch-slim
25+
2526
RUN apt-get update && \
2627
apt-get install -y \
2728
libgmp10 \
2829
&& \
2930
apt-get autoremove -y && \
3031
apt-get clean -y && \
3132
rm -rf /var/lib/apt/lists/*
33+
3234
COPY --from=build /usr/local/bin/semantic /usr/local/bin/semantic
35+
3336
ENTRYPOINT ["/usr/local/bin/semantic"]

0 commit comments

Comments
 (0)