Skip to content

Commit

Permalink
Docker add certs (#66)
Browse files Browse the repository at this point in the history
* Add cert bundle to scratch image

* add no-cache flag
  • Loading branch information
derrick-dacosta authored Apr 23, 2024
1 parent 4a8a7d2 commit 82dee06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ COPY vendor /sources/vendor/
# Build the sources tarball outside of /deps so it has to be copied explicitly
RUN cd /; tar -czf /sources.tgz sources

FROM alpine:latest as certs
RUN apk --update --no-cache add ca-certificates

# 'bin' stage, copy in only the binary and dependencies
FROM scratch AS bin
WORKDIR /
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /go/src/github.com/comcast/fishymetrics/fishymetrics /

ENTRYPOINT ["/fishymetrics"]
Expand Down

0 comments on commit 82dee06

Please sign in to comment.