From d6be67fe677266bbcb84968b4eb87d4a48ad4198 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 1 Feb 2016 11:57:53 -0800 Subject: [PATCH] use gogs binary --- Dockerfile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 930c6a3..e8ab275 100644 --- a/Dockerfile +++ b/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