Add CA certificate file from build to docker image so HIBP lookups won't fail

This commit is contained in:
Winni Neessen 2022-05-11 16:24:24 +02:00
parent dcdc4fb92f
commit c08abd0aa3
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -11,6 +11,7 @@ FROM scratch
LABEL maintainer="wn@neessen.net" LABEL maintainer="wn@neessen.net"
COPY ["docker-files/passwd", "/etc/passwd"] COPY ["docker-files/passwd", "/etc/passwd"]
COPY ["docker-files/group", "/etc/group"] COPY ["docker-files/group", "/etc/group"]
COPY --from=builder ["/etc/ssl/certs/ca-certificates.crt", "/etc/ssl/cert.pem"]
COPY --chown=apg-go ["LICENSE", "/apg-go/LICENSE"] COPY --chown=apg-go ["LICENSE", "/apg-go/LICENSE"]
COPY --chown=apg-go ["README.md", "/apg-go/README.md"] COPY --chown=apg-go ["README.md", "/apg-go/README.md"]
COPY --from=builder --chown=apg-go ["/builddir/apg-go", "/apg-go/apg-go"] COPY --from=builder --chown=apg-go ["/builddir/apg-go", "/apg-go/apg-go"]