]> source.dussan.org Git - gitea.git/commitdiff
Checkout to the latest dev branch when building the gogs docker image.
authorcrystaldust <juzhenatpku@gmail.com>
Tue, 22 Apr 2014 10:19:23 +0000 (10:19 +0000)
committercrystaldust <juzhenatpku@gmail.com>
Tue, 22 Apr 2014 10:19:23 +0000 (10:19 +0000)
dockerfiles/images/gogits/Dockerfile

index 6a734c13daf92b02118601c4eab53307ef638ab1..25d1dd5e5cc39c1c1b0385de494a79665f3e43d0 100644 (file)
@@ -13,14 +13,13 @@ ENV GOROOT /usr/local/go
 ENV GOPATH /go
 
 RUN apt-get update && apt-get install --yes --force-yes curl git mercurial zip wget ca-certificates build-essential
+RUN apt-get install -yq vim
 
 RUN curl -s http://docker.u.qiniudn.com/go1.2.1.src.tar.gz | tar -v -C /usr/local -xz
 RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
 
-# You may need a proxy, if github is very slow.
-#RUN http_proxy=106.187.38.45:3128 go get -u github.com/gogits/gogs 
-RUN go get -u github.com/gogits/gogs 
-RUN cd $GOPATH/src/github.com/gogits/gogs && go build
+RUN go get -u -d github.com/gogits/gogs 
+RUN cd $GOPATH/src/github.com/gogits/gogs && git checkout dev && git pull origin dev && go install && go build -tags redis
 
 # Clean all the unused packages
 RUN apt-get autoremove -y