2018-09-14 21:31:15 +02:00
|
|
|
FROM golang:alpine as builder
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2016-08-13 21:10:42 +02:00
|
|
|
|
2018-09-14 21:31:15 +02:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
libc-dev
|
|
|
|
|
2016-08-13 21:10:42 +02:00
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
2018-09-14 21:31:15 +02:00
|
|
|
RUN go get github.com/sourcegraph/checkup/cmd/checkup
|
2016-08-13 21:10:42 +02:00
|
|
|
|
2018-09-14 21:31:15 +02:00
|
|
|
FROM alpine:latest
|
2016-08-13 21:10:42 +02:00
|
|
|
|
2018-09-14 21:31:15 +02:00
|
|
|
COPY --from=builder /go/bin/checkup /usr/bin/checkup
|
|
|
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
2016-08-13 21:10:42 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "checkup" ]
|