2016-10-08 04:03:54 +02:00
|
|
|
FROM alpine:latest
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2016-08-13 21:10:42 +02:00
|
|
|
|
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV GO15VENDOREXPERIMENT 1
|
|
|
|
|
|
|
|
RUN apk update && apk add \
|
|
|
|
ca-certificates \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN buildDeps=' \
|
|
|
|
go \
|
|
|
|
git \
|
|
|
|
gcc \
|
|
|
|
libc-dev \
|
|
|
|
libgcc \
|
|
|
|
' \
|
|
|
|
set -x \
|
|
|
|
&& apk update \
|
2016-10-25 22:37:56 +02:00
|
|
|
&& apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
|
2016-08-13 21:10:42 +02:00
|
|
|
&& go get github.com/sourcegraph/checkup/cmd/checkup \
|
|
|
|
&& cp /go/bin/checkup /usr/bin/checkup \
|
|
|
|
&& apk del $buildDeps \
|
|
|
|
&& rm -rf /var/cache/apk/* \
|
|
|
|
&& rm -rf /go \
|
|
|
|
&& echo "Build complete."
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "checkup" ]
|