mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
00a8a40398
Use the generate.sh script instead of md2man directly. Update Dockerfile for generating man pages. Signed-off-by: Daniel Nephin <dnephin@docker.com>
20 lines
723 B
Docker
20 lines
723 B
Docker
FROM golang:1.6.3-alpine
|
|
|
|
RUN apk add -U git bash curl gcc musl-dev
|
|
|
|
RUN export GLIDE=0.10.2; \
|
|
export SRC=https://github.com/Masterminds/glide/releases/download/; \
|
|
curl -sL ${SRC}/${GLIDE}/glide-${GLIDE}-linux-amd64.tar.gz | \
|
|
tar -xz linux-amd64/glide && \
|
|
mv linux-amd64/glide /usr/bin/glide && \
|
|
chmod +x /usr/bin/glide
|
|
|
|
COPY man/glide.yaml /manvendor/
|
|
COPY man/glide.lock /manvendor/
|
|
WORKDIR /manvendor/
|
|
RUN glide install && mv vendor src
|
|
ENV GOPATH=$GOPATH:/go/src/github.com/docker/docker/vendor:/manvendor
|
|
RUN go build -o /usr/bin/go-md2man github.com/cpuguy83/go-md2man
|
|
|
|
WORKDIR /go/src/github.com/docker/docker/
|
|
ENTRYPOINT ["man/generate.sh"]
|