From 209ae8a2be1b1ce7417e2de37670e347805db3db Mon Sep 17 00:00:00 2001 From: Minho Date: Wed, 3 May 2017 16:17:03 +0800 Subject: [PATCH] * --- Dockerfile | 4 ++-- start.sh | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d8b4ef4..c2be95ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /go/src/github.com/lifei6671/godoc RUN chmod +x start.sh RUN go get -d ./... && \ - go build -ldflags "-w" && \ - rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps + go build -v -o godoc-linux-amd64 -ldflags "-w" && \ + rm -rf commands controllers models routers search vendor .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md utils graphics Godeps conf/*.go CMD ["./start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh index 514917c4..cff6ae05 100644 --- a/start.sh +++ b/start.sh @@ -36,10 +36,5 @@ if [ ! -z $HTTP_PORT] ; then sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf fi -for GOOS in darwin linux windows; do - for GOARCH in 386 amd64; do - go build -v -o godoc-$GOOS-$GOARCH - done -done /go/src/github.com/lifei6671/godoc/godoc-linux-amd64 \ No newline at end of file