ssl-certs-checker/Dockerfile

11 lines
297 B
Docker
Raw Normal View History

2020-03-15 14:15:03 +00:00
FROM golang:1.14-alpine3.11 AS builder
2020-02-22 15:39:16 +00:00
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"]