1
0
韩亮 8 жил өмнө
parent
commit
b302dc2634
1 өөрчлөгдсөн 6 нэмэгдсэн , 7 устгасан
  1. 6 7
      Dockerfile

+ 6 - 7
Dockerfile

@@ -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"]