dockerfiles/checkup/Dockerfile
Michael 7eea00edf3 Replaced deprecated MAINTAINER with LABEL (#242)
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
2017-03-09 10:14:37 -08:00

31 lines
653 B
Docker

FROM alpine:latest
LABEL 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 https://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" ]