Ver código fonte

Update Dockerfile

韩亮 8 anos atrás
pai
commit
5a74e1b434
1 arquivos alterados com 7 adições e 5 exclusões
  1. 7 5
      Dockerfile

+ 7 - 5
Dockerfile

@@ -9,10 +9,12 @@ ADD . /go/src/github.com/lifei6671/mindoc
 WORKDIR /go/src/github.com/lifei6671/mindoc
 
 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 "windows linux darwin" -arch amd64
 
-RUN  go get -d ./... && \
-    go get github.com/mitchellh/gox && \
-    gox -os "windows linux darwin" -arch amd64
 
-
-CMD ["./start.sh"]
+CMD ["./start.sh"]