浏览代码

Use variables, when the're there

Why not use the environment variables, when they are there...
Tristan Storch 10 年之前
父节点
当前提交
863a4d5bc4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docker/blocks/docker_gogs_dev/Dockerfile

+ 1 - 1
docker/blocks/docker_gogs_dev/Dockerfile

@@ -32,7 +32,7 @@ ENV GOGS_PATH $GOPATH/src/github.com/gogits/gogs
 ENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/conf
 ENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/conf
 ENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.ini
 ENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.ini
 
 
-RUN git clone -b dev https://github.com/gogits/gogs.git $GOPATH/src/github.com/gogits/gogs
+RUN git clone -b dev https://github.com/gogits/gogs.git $GOGS_PATH
 # WORKDIR $GOGS_PATH
 # WORKDIR $GOGS_PATH
 WORKDIR /go/src/github.com/gogits/gogs
 WORKDIR /go/src/github.com/gogits/gogs
 RUN go get -d && go build
 RUN go get -d && go build