github.com/portworx/docker@v1.12.1/man/Dockerfile (about) 1 FROM alpine:3.4 2 3 RUN apk add -U git go bash curl gcc musl-dev make 4 5 RUN mkdir -p /go/src /go/bin /go/pkg 6 ENV GOPATH=/go 7 RUN export GLIDE=v0.11.1; \ 8 export TARGET=/go/src/github.com/Masterminds; \ 9 mkdir -p ${TARGET} && \ 10 git clone https://github.com/Masterminds/glide.git ${TARGET}/glide && \ 11 cd ${TARGET}/glide && \ 12 make build && \ 13 cp ./glide /usr/bin/glide && \ 14 cd / && rm -rf /go/src/* /go/bin/* /go/pkg/* 15 16 COPY glide.yaml /manvendor/ 17 COPY glide.lock /manvendor/ 18 WORKDIR /manvendor/ 19 RUN glide install && mv vendor src 20 ENV GOPATH=$GOPATH:/go/src/github.com/docker/docker/vendor:/manvendor 21 RUN go build -o /usr/bin/go-md2man github.com/cpuguy83/go-md2man 22 23 WORKDIR /go/src/github.com/docker/docker/ 24 ENTRYPOINT ["man/generate.sh"]