ssl-certs-checker/Dockerfile

12 lines
466 B
Docker
Raw Normal View History

2022-05-28 14:39:38 +01:00
FROM public.ecr.aws/docker/library/golang:1.18-alpine3.16 AS builder
RUN apk add --no-cache git ca-certificates
2020-02-22 15:39:16 +00:00
WORKDIR ${GOPATH}/src/github.com/guessi/ssl-certs-checker
2022-04-18 16:46:44 +01:00
COPY *.go go.mod go.sum ./
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /go/bin/ssl-certs-checker
2020-02-22 15:39:16 +00:00
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2020-02-22 15:39:16 +00:00
COPY --from=builder /go/bin/ssl-certs-checker /opt/
WORKDIR /opt/
ENTRYPOINT ["/opt/ssl-certs-checker"]