copy cert bundle into scratch

This commit is contained in:
David 2022-04-02 17:30:25 -04:00
parent 04aadf1d10
commit 759835993e

View File

@ -4,5 +4,6 @@ COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/serve
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=0 /src/server ./
CMD ["/server"]