2021-03-13 06:37:49 +00:00
|
|
|
FROM golang:1.16-alpine3.13 AS builder
|
2020-05-10 09:21:45 +01:00
|
|
|
LABEL maintainer="guessi <guessi@gmail.com>"
|
|
|
|
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
|
|
|
|
COPY . .
|
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
|
|
|
|
LABEL maintainer="guessi <guessi@gmail.com>"
|
|
|
|
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"]
|