Browse Source

Add golang.org lib.

master
hxsherry 8 years ago
parent
commit
31ba9f5c5f
  1. 2
      Dockerfile
  2. 4
      build/pack/build.sh

2
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

4
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"

Loading…
Cancel
Save