dockerfiles/checkup/Dockerfile

21 lines
414 B
Docker
Raw Normal View History

FROM golang:alpine as builder
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apk --no-cache add \
ca-certificates \
gcc \
git \
libc-dev
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN go get github.com/sourcegraph/checkup/cmd/checkup
FROM alpine:latest
COPY --from=builder /go/bin/checkup /usr/bin/checkup
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
ENTRYPOINT [ "checkup" ]