Dockerfile 311 B

123456789101112131415161718
  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 get github.com/mitchellh/gox && \
  8. gox -os "windows linux darwin" -arch amd64
  9. CMD ["./start.sh"]