|
@@ -1,4 +1,4 @@
|
|
|
-FROM golang:1.8.1-alpine
|
|
|
+FROM golang:1.8.3-alpine3.6
|
|
|
|
|
|
|
|
|
RUN apk add --update bash git make gcc
|
|
@@ -10,10 +10,9 @@ WORKDIR /go/src/github.com/lifei6671/mindoc
|
|
|
|
|
|
RUN chmod +x start.sh
|
|
|
|
|
|
-RUN go get -d ./... && \
|
|
|
- go get github.com/mitchellh/gox
|
|
|
-RUN brew install glide
|
|
|
-RUN glide install
|
|
|
-RUN go build -ldflags "-w"
|
|
|
-
|
|
|
+RUN go get -d ./... && \
|
|
|
+ go get github.com/mitchellh/gox && \
|
|
|
+ gox -os "windows linux darwin" -arch amd64
|
|
|
+
|
|
|
+
|
|
|
CMD ["./start.sh"]
|