mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 05:18:11 +01:00
4c8d199b21
Signed-off-by: Jess Frazelle <acidburn@google.com>
31 lines
644 B
Docker
31 lines
644 B
Docker
FROM alpine:latest
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
|
|
|
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 \
|
|
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
|
|
&& 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" ]
|