1
0
Minho 8 жил өмнө
parent
commit
e457408126
2 өөрчлөгдсөн 2 нэмэгдсэн , 7 устгасан
  1. 1 1
      Dockerfile
  2. 1 6
      start.sh

+ 1 - 1
Dockerfile

@@ -12,7 +12,7 @@ RUN chmod +x start.sh
 
 RUN  go get -d ./... && \
     go get github.com/mitchellh/gox && \
-    gox
+    gox -os "windows linux darwin" -arch amd64
 
 
 CMD ["./start.sh"]

+ 1 - 6
start.sh

@@ -3,11 +3,6 @@ set -e
 
 cd /go/src/github.com/lifei6671/godoc/
 
-goFile="godoc-linux-amd64"
-
-
-chmod +x $goFile
-
 if [ ! -f "conf/app.conf" ] ; then
     cp conf/app.conf.example conf/app.conf
 fi
@@ -37,4 +32,4 @@ if [ ! -z $HTTP_PORT] ; then
 fi
 
 
-/go/src/github.com/lifei6671/godoc/godoc-linux-amd64
+/go/src/github.com/lifei6671/godoc/godoc_linux_amd64