mindoc/Dockerfile
2017-05-03 16:17:03 +08:00

17 lines
442 B
Docker

FROM golang:1.8.1-alpine
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
RUN go get -d ./... && \
go build -v -o godoc-linux-amd64 -ldflags "-w" && \
rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps conf/*.go
CMD ["./start.sh"]