Update Dockerfile

pull/85/head
韩亮 2017-06-21 17:00:02 +08:00 committed by GitHub
parent 9a0b4de5c2
commit 359d77fafe
1 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.9 FROM golang:1.8.1-alpine
RUN apk add --update bash git make gcc RUN apk add --update bash git make gcc
@ -9,12 +9,10 @@ ADD . /go/src/github.com/lifei6671/mindoc
WORKDIR /go/src/github.com/lifei6671/mindoc WORKDIR /go/src/github.com/lifei6671/mindoc
RUN chmod +x start.sh RUN chmod +x start.sh
#RUN go get -d ./...
#RUN go get github.com/mitchellh/gox
#RUN go gox -os "windows linux darwin" -arch amd64
RUN go get -d ./... && \
go get github.com/mitchellh/gox && \
gox -os "linux" -arch amd64
RUN go get -d ./... && \
go get github.com/mitchellh/gox
RUN gox -h
RUN gox -os "windows linux darwin" -arch amd64
CMD ["./start.sh"] CMD ["./start.sh"]