github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/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          git checkout $GLIDE && \
    13          make build && \
    14          cp ./glide /usr/bin/glide && \
    15          cd / && rm -rf /go/src/* /go/bin/* /go/pkg/*
    16  
    17  COPY    glide.yaml /manvendor/
    18  COPY    glide.lock /manvendor/
    19  WORKDIR /manvendor/
    20  RUN     glide install && mv vendor src
    21  ENV     GOPATH=$GOPATH:/manvendor
    22  RUN     go build -o /usr/bin/go-md2man github.com/cpuguy83/go-md2man
    23  
    24  WORKDIR /go/src/github.com/docker/docker/
    25  ENTRYPOINT ["man/generate.sh"]