gogs: update dockerfile

This commit is contained in:
Sam Dodrill 2015-02-11 23:08:02 -08:00
parent aa639c8167
commit 118c6c3a58
1 changed files with 7 additions and 9 deletions

View File

@ -1,14 +1,12 @@
FROM flitter/init FROM flitter/init
RUN apt-get update && apt-get install -y openssh-server sqlite3 libsqlite3-0 git wget unzip RUN apt-get update && apt-get install -y openssh-server sqlite3 libsqlite3-0 git wget unzip &&\
RUN mkdir /gogs && cd /gogs && mkdir dl && cd dl mkdir /gogs && cd /gogs && mkdir dl && cd dl &&\
wget http://gogs.dn.qbox.me/gogs_v0.5.11_linux_amd64.zip -O /gogs/dl/gogs.zip &&\
RUN wget http://gogs.dn.qbox.me/gogs_v0.5.11_linux_amd64.zip -O /gogs/dl/gogs.zip cd /gogs && unzip /gogs/dl/gogs.zip && mv gogs install &&\
RUN cd /gogs && unzip /gogs/dl/gogs.zip && mv gogs install mkdir /gogs/data/repos -p && useradd git --create-home &&\
echo 'git:user' | chpasswd && chown -R git /gogs/data && chmod 777 /gogs/data/repos &&\
RUN mkdir /gogs/data/repos -p && useradd git --create-home && echo 'git:user' | chpasswd && chown -R git /gogs/data && chmod 777 /gogs/data/repos mkdir -p /var/run/sshd
RUN mkdir -p /var/run/sshd
ADD runit/ /etc/service ADD runit/ /etc/service
ADD gogs/ /gogs/install ADD gogs/ /gogs/install