From 31ba9f5c5f2a5b77001b0ebcc2f48328794d0cd0 Mon Sep 17 00:00:00 2001 From: hxsherry <1053288784@qq.com> Date: Sun, 28 Jan 2018 23:21:10 +0800 Subject: [PATCH] Add golang.org lib. --- Dockerfile | 2 +- build/pack/build.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"