ssl-certs-checker/Dockerfile

14 lines
508 B
Docker
Raw Normal View History

2021-02-15 17:12:25 +00:00
FROM golang:1.15-alpine3.13 AS builder
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 . .
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
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"]