Checkout to the latest dev branch when building the gogs docker image.

This commit is contained in:
crystaldust 2014-04-22 10:19:23 +00:00
parent b60d5ecc3e
commit 65ad26feba

View File

@ -13,14 +13,13 @@ ENV GOROOT /usr/local/go
ENV GOPATH /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 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 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 RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
# You may need a proxy, if github is very slow. RUN go get -u -d github.com/gogits/gogs
#RUN http_proxy=106.187.38.45:3128 go get -u 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
RUN go get -u github.com/gogits/gogs
RUN cd $GOPATH/src/github.com/gogits/gogs && go build
# Clean all the unused packages # Clean all the unused packages
RUN apt-get autoremove -y RUN apt-get autoremove -y