Skip to content

Commit

Permalink
Copy certs later, so that apk does not remove them
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 17, 2024
1 parent 74ff8ba commit 488c76c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/dockerfile/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ RUN make -C /src install PREFIX=/pkg GOTOOLCHAIN=local%[3]s
FROM alpine:%[2]s
%[4]sCOPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/cert.pem
# upgrade all installed packages to fix potential CVEs in advance
%[4]s# upgrade all installed packages to fix potential CVEs in advance
# also remove apk package manager to hopefully remove dependency on OpenSSL 🤞
RUN %[5]s
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/cert.pem
COPY --from=builder /pkg/ /usr/
ARG BININFO_BUILD_DATE BININFO_COMMIT_HASH BININFO_VERSION
Expand Down

0 comments on commit 488c76c

Please sign in to comment.