2022-05-28 14:39:38 +01:00
|
|
|
FROM public.ecr.aws/docker/library/golang:1.18-alpine3.16 AS builder
|
2020-05-10 09:21:45 +01:00
|
|
|
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 ./
|
2020-05-10 09:21:45 +01:00
|
|
|
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /go/bin/ssl-certs-checker
|
2020-02-22 15:39:16 +00:00
|
|
|
|
2020-05-10 09:21:45 +01: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"]
|