mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-25 09:30:58 +00:00
use gogs binary
This commit is contained in:
parent
7c5bd371ac
commit
d6be67fe67
1 changed files with 3 additions and 16 deletions
19
Dockerfile
19
Dockerfile
|
@ -6,23 +6,10 @@ RUN apt-get update && \
|
|||
|
||||
ADD supervisor/ /etc/supervisor/conf.d/
|
||||
|
||||
ENV GOROOT /usr/local/go-1.5.1
|
||||
ENV PATH $GOROOT/bin:$PATH
|
||||
ENV GOPATH /home/cloudron/gows
|
||||
RUN mkdir -p /home/cloudron/gows /home/cloudron/gogs
|
||||
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/gogits/gogs.git && \
|
||||
cd gogs && \
|
||||
git reset --hard b2fb7e3fd27f360e65ee60b93cad7d5d9832f818 && \
|
||||
go get ./... && \
|
||||
go build && \
|
||||
go install && \
|
||||
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/ && \
|
||||
cp -r ${GOPATH}/src/github.com/gogits/gogs/templates/ /home/cloudron/gogs/. && \
|
||||
cp -r ${GOPATH}/src/github.com/gogits/gogs/public/ /home/cloudron/gogs/. && \
|
||||
rm -rf ${GOPATH}
|
||||
RUN cd /home/cloudron/gogs && \
|
||||
curl -L https://github.com/gogits/gogs/releases/download/v0.8.25/linux_amd64.tar.gz | tar zxvf - --strip-components 1
|
||||
|
||||
# setup config paths
|
||||
ADD app.ini.template /home/cloudron/app.ini.template
|
||||
|
|
Loading…
Reference in a new issue