2022-12-10 18:54:52 +00:00
|
|
|
FROM public.ecr.aws/docker/library/golang:1.19-alpine3.17 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"]
|