2017-04-30 22:13:12 +08:00
|
|
|
FROM golang:1.8.1-alpine
|
|
|
|
|
|
|
|
|
2017-05-01 13:11:33 +08:00
|
|
|
RUN apk add --update bash git make gcc
|
|
|
|
|
2017-04-30 22:13:12 +08:00
|
|
|
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 ./... && \
|
|
|
|
go build -ldflags "-w" && \
|
2017-04-30 22:13:12 +08:00
|
|
|
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"]
|