mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
ef3ead938e
closes #414 Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
21 lines
414 B
Docker
21 lines
414 B
Docker
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" ]
|