From e45740812690a53104bfabcd20841bb820a4f5a8 Mon Sep 17 00:00:00 2001 From: Minho Date: Wed, 3 May 2017 17:54:17 +0800 Subject: [PATCH] * --- Dockerfile | 2 +- start.sh | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 86e5b60e..9cf4a8fe 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file diff --git a/start.sh b/start.sh index e12bdf11..a282e22d 100644 --- a/start.sh +++ b/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 \ No newline at end of file +/go/src/github.com/lifei6671/godoc/godoc_linux_amd64 \ No newline at end of file