Dockerfile 407 B

1234567891011121314151617
  1. FROM golang:1.8.1-alpine
  2. RUN apk add --update bash git make gcc
  3. ADD . /go/src/github.com/lifei6671/godoc
  4. WORKDIR /go/src/github.com/lifei6671/godoc
  5. RUN chmod +x start.sh
  6. RUN go get -d ./... && \
  7. go build -ldflags "-w" && \
  8. rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps
  9. CMD ["./start.sh"]