mindoc/Dockerfile

17 lines
276 B
Docker
Raw Normal View History

FROM golang:1.8.1-alpine
2017-05-01 13:11:33 +08:00
RUN apk add --update bash git make gcc
ADD . /go/src/github.com/lifei6671/godoc
WORKDIR /go/src/github.com/lifei6671/godoc
RUN chmod +x start.sh
2017-05-01 12:58:28 +08:00
RUN go get -d ./... && \
2017-05-03 17:31:34 +08:00
go build -v -o godoc-linux-amd64 -ldflags "-w"
CMD ["./start.sh"]