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-06-14 09:29:08 +08:00
|
|
|
ADD . /go/src/github.com/lifei6671/mindoc
|
2017-04-30 22:13:12 +08:00
|
|
|
|
|
|
|
|
2017-06-14 09:29:08 +08:00
|
|
|
WORKDIR /go/src/github.com/lifei6671/mindoc
|
2017-04-30 22:13:12 +08:00
|
|
|
|
|
|
|
RUN chmod +x start.sh
|
2017-06-21 16:34:01 +08:00
|
|
|
#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
|
2017-04-30 22:13:12 +08:00
|
|
|
|
2017-05-03 17:31:34 +08:00
|
|
|
|
2017-06-21 16:26:55 +08:00
|
|
|
CMD ["./start.sh"]
|