Skip to content

Commit

Permalink
Merge pull request #3 from zytedata/fix_log4j
Browse files Browse the repository at this point in the history
[INFOSEC-104] Cleanup image of build tools
  • Loading branch information
cyberplant authored Jan 9, 2024
2 parents 851a52d + fff1b0b commit 719e653
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3
FROM alpine:3 AS builder

RUN apk update && \
apk add bash openssl wget openjdk11 nodejs openjdk11-jre
Expand All @@ -8,8 +8,15 @@ RUN cd /tmp/cmak && ./sbt clean dist
RUN unzip /tmp/cmak/target/universal/cmak-*.zip -d /tmp && \
mv /tmp/cmak-* /app

FROM alpine:3

COPY --from=builder /app /app

WORKDIR /app

RUN apk update --no-cache && \
apk add openjdk11-jre bash

EXPOSE 9000

ENTRYPOINT ["/app/bin/cmak"]

0 comments on commit 719e653

Please sign in to comment.