Build gogs from source instead

This commit is contained in:
Girish Ramakrishnan 2015-06-23 10:27:40 -07:00
parent 6d41701bab
commit f2c4d35630
1 changed files with 12 additions and 5 deletions

View File

@ -6,11 +6,18 @@ RUN apt-get update && \
ADD supervisor/ /etc/supervisor/conf.d/ ADD supervisor/ /etc/supervisor/conf.d/
RUN cd /tmp && \ ENV GOPATH /home/cloudron
wget https://github.com/gogits/gogs/releases/download/v0.6.1/linux_amd64.zip && \ RUN mkdir -p /home/cloudron/gogs
unzip linux_amd64.zip -d /home/cloudron && \
chown -R cloudron:cloudron /home/cloudron/gogs && \ ## TODO: use redis as well
rm linux_amd64.zip RUN mkdir -p ${GOPATH}/src/github.com/gogits && \
cd ${GOPATH}/src/github.com/gogits && \
git clone https://github.com/cloudron-io/gogs.git && \
cd gogs && \
go get -u -tags "sqlite" && \
go build -tags "sqlite" && \
go install && \
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/
ADD app.ini.template /home/cloudron/app.ini.template ADD app.ini.template /home/cloudron/app.ini.template
ADD start.sh /home/cloudron/start.sh ADD start.sh /home/cloudron/start.sh