Skip to content

Commit

Permalink
feat: remove the need of update-ca-certificates command
Browse files Browse the repository at this point in the history
  • Loading branch information
mherwig committed Mar 12, 2024
1 parent f4cbcaa commit 6b8f30e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.multi-stage
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ COPY --from=builder /workspace/app/build/libs/starlight.jar app.jar
# image build that includes a local cacert.pem and import it into the default truststore
FROM standard as with_cacert
USER root
RUN apk add --no-cache ca-certificates
COPY cacert.pem /usr/local/share/ca-certificates/cacert.pem
RUN update-ca-certificates
COPY cacert.crt cacert.crt
RUN keytool -importcert -trustcacerts -cacerts -file cacert.crt -alias platform -noprompt
USER 1001:1001

# main
Expand Down

0 comments on commit 6b8f30e

Please sign in to comment.