| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | FROM ubuntu:14.04# This part is derived from the official docker image ------------------RUN DEBIAN_FRONTEND=noninteractive apt-get update && \		apt-get install -qy \		build-essential ca-certificates curl \		bzr git mercurial openssh-client\		--no-install-recommendsENV GOLANG_VERSION 1.3RUN curl -sSL http://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \	| tar -v -C /usr/src -xzWORKDIR /usr/src/goRUN cd src && ./make.bash --no-clean 2>&1ENV PATH /usr/src/go/bin:$PATHRUN mkdir -p /go/srcENV GOPATH /goENV PATH /go/bin:$PATHWORKDIR /go# ----------------------------------------------------------------------RUN useradd -m gitENV GOGS_PATH $GOPATH/src/github.com/gogits/gogsENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/confENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.iniRUN git clone -b dev https://github.com/gogits/gogs.git $GOGS_PATH# WORKDIR $GOGS_PATHWORKDIR /go/src/github.com/gogits/gogsRUN go get -d && go buildRUN chown -R git $GOGS_PATHADD init_gogs.sh /tmp/RUN chown git /tmp/init_gogs.shRUN chmod +x /tmp/init_gogs.shUSER gitENV HOME /home/gitENV USER gitENV PATH $GOGS_PATH:$PATHRUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com"ENTRYPOINT ["/tmp/init_gogs.sh"]CMD ["gogs", "web"]
 |