This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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
1212RUN 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+
2526RUN 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+
3234COPY --from=build /usr/local/bin/semantic /usr/local/bin/semantic
35+
3336ENTRYPOINT ["/usr/local/bin/semantic" ]
You can’t perform that action at this time.
0 commit comments