mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-12-22 07:06:34 +00:00
Build gogs from source instead
This commit is contained in:
parent
6d41701bab
commit
f2c4d35630
1 changed files with 12 additions and 5 deletions
17
Dockerfile
17
Dockerfile
|
@ -6,11 +6,18 @@ RUN apt-get update && \
|
|||
|
||||
ADD supervisor/ /etc/supervisor/conf.d/
|
||||
|
||||
RUN cd /tmp && \
|
||||
wget https://github.com/gogits/gogs/releases/download/v0.6.1/linux_amd64.zip && \
|
||||
unzip linux_amd64.zip -d /home/cloudron && \
|
||||
chown -R cloudron:cloudron /home/cloudron/gogs && \
|
||||
rm linux_amd64.zip
|
||||
ENV GOPATH /home/cloudron
|
||||
RUN mkdir -p /home/cloudron/gogs
|
||||
|
||||
## TODO: use redis as well
|
||||
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 start.sh /home/cloudron/start.sh
|
||||
|
|
Loading…
Reference in a new issue