1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00
Files
docs/Dockerfile
Jessica Frazelle 57e15b3c66 inital parsing of maintainers files
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-12-04 09:34:56 -08:00

35 lines
706 B
Docker

FROM alpine
MAINTAINER Jessica Frazelle <jess@docker.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk update && apk add \
ca-certificates \
&& rm -rf /var/cache/apk/*
COPY . /go/src/github.com/docker/opensource
RUN buildDeps=' \
go \
git \
gcc \
libc-dev \
libgcc \
' \
set -x \
&& apk update \
&& apk add $buildDeps \
&& cd /go/src/github.com/docker/opensource \
&& go get -d -v github.com/docker/opensource/maintainers \
&& go generate ./maintainers \
&& go build -o /usr/bin/maintainers ./maintainers \
&& apk del $buildDeps \
&& rm -rf /var/cache/apk/* \
&& rm -rf /go \
&& echo "Build complete."
WORKDIR /root/maintainers
ENTRYPOINT [ "maintainers" ]