gogs: update dockerfile
This commit is contained in:
parent
aa639c8167
commit
118c6c3a58
|
@ -1,14 +1,12 @@
|
|||
FROM flitter/init
|
||||
|
||||
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
|
||||
|
||||
RUN wget http://gogs.dn.qbox.me/gogs_v0.5.11_linux_amd64.zip -O /gogs/dl/gogs.zip
|
||||
RUN cd /gogs && unzip /gogs/dl/gogs.zip && mv gogs install
|
||||
|
||||
RUN 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 -p /var/run/sshd
|
||||
RUN apt-get update && apt-get install -y openssh-server sqlite3 libsqlite3-0 git wget unzip &&\
|
||||
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 &&\
|
||||
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 &&\
|
||||
mkdir -p /var/run/sshd
|
||||
|
||||
ADD runit/ /etc/service
|
||||
ADD gogs/ /gogs/install
|
||||
|
|
Loading…
Reference in New Issue