ssl-certs-checker/Dockerfile
2020-02-23 00:09:31 +08:00

11 lines
297 B
Docker

FROM golang:1.13-alpine3.11 AS builder
RUN apk add --no-cache git
WORKDIR ${GOPATH}/src/github.com/guessi/ssl-certs-checker
COPY . .
RUN go build -o /go/bin/ssl-certs-checker
FROM alpine:3.11
COPY --from=builder /go/bin/ssl-certs-checker /opt/
WORKDIR /opt/
ENTRYPOINT ["/opt/ssl-certs-checker"]