mindoc/Dockerfile
lifei6671 cd4d0741fa *
2017-05-01 16:00:44 +08:00

18 lines
468 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 cat "" > /go/src/github.com/lifei6671/godoc/logs/log.log
RUN chmod +x start.sh
RUN go get -d ./... && \
go build -ldflags "-w" && \
rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps
CMD ["./start.sh"]