Skip to content

Commit

Permalink
Use multistage build to get certs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Tuite committed Apr 10, 2020
1 parent 8b7f264 commit 908bc0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:latest as certs
RUN apk --update add ca-certificates

FROM scratch
RUN apk update && \
apk add ca-certificates && \
update-ca-certificates && \
rm -rf /var/cache/apk/*
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY kubewise /
ENTRYPOINT ["/kubewise"]

0 comments on commit 908bc0b

Please sign in to comment.