]> source.dussan.org Git - gitea.git/commitdiff
Use variables, when the're there
authorTristan Storch <tstorch@math.uni-bielefeld.de>
Wed, 3 Sep 2014 16:41:20 +0000 (18:41 +0200)
committerTristan Storch <tstorch@math.uni-bielefeld.de>
Wed, 3 Sep 2014 16:44:15 +0000 (18:44 +0200)
Why not use the environment variables, when they are there...

docker/blocks/docker_gogs_dev/Dockerfile

index a016409f5246540762f6aac2ea44dae26e77ceb9..d1b96bf4a241fa09d58157aa3d0d934a1a698028 100644 (file)
@@ -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 $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 /go/src/github.com/gogits/gogs
 RUN go get -d && go build