diff --git a/Dockerfile b/Dockerfile index 3fb5b24..dadc9ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ MAINTAINER eyeblue "eyebluecn@126.com" WORKDIR $GOPATH/src/tank # 将tank项目下的所有文件移动到golang镜像中去 -ADD . $GOPATH/src/tank +COPY . $GOPATH/src/tank # 开始编译 RUN ./build/pack/build.sh diff --git a/build/pack/build.sh b/build/pack/build.sh index 42107b1..0ef24ff 100755 --- a/build/pack/build.sh +++ b/build/pack/build.sh @@ -13,9 +13,11 @@ FINAL_NAME=$VERSION_NAME.linux-amd64.tar.gz cd $GOPATH -echo "golang.org . Please download from: https://github.com/eyebluecn/golang.org and put in the directory with same level of github.com" # echo "go get golang.org/x" # go get golang.org/x +if [ -z "$GOPATH/src/golang.org" ] ; then + git clone https://github.com/eyebluecn/golang.org.git $GOPATH/src/golang.org +fi # resize image echo "go get github.com/disintegration/imaging"