certs-test/Containerfile
2023-03-08 17:59:17 +01:00

15 lines
338 B
Docker

FROM ghcr.io/mariouhrik/scratch-with-cacerts as certs
FROM docker.io/library/golang:1.20.1 as build
COPY . /certs-test
WORKDIR /certs-test
RUN CGO_ENABLED=0 go build -v .
FROM scratch
COPY --from=build /certs-test/certs-test /certs-test
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/certs-test"]