gitea-app/Dockerfile

25 lines
767 B
Docker
Raw Normal View History

2015-04-26 19:45:32 +00:00
FROM girish/base:0.2.0
2015-04-29 02:29:12 +00:00
RUN apt-get update && \
apt-get install -y openssh-server && \
rm -r /var/cache/apt /var/lib/apt/lists
2015-04-29 00:12:16 +00:00
2015-04-29 02:29:12 +00:00
ADD supervisor/ /etc/supervisor/conf.d/
2015-04-29 00:12:16 +00:00
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
2015-04-26 19:45:32 +00:00
2015-04-29 00:12:16 +00:00
ADD app.ini.template /home/cloudron/app.ini.template
ADD start.sh /home/cloudron/start.sh
2015-04-26 19:45:32 +00:00
2015-04-29 02:29:12 +00:00
# disable pam authentication for sshd
RUN sed 's/UsePAM yes/UsePAM no/' -i /etc/ssh/sshd_config
RUN sed 's/UsePrivilegeSeparation yes/UsePrivilegeSeparation no/' -i /etc/ssh/sshd_config
RUN echo "UseDNS no" >> /etc/ssh/sshd_config
2015-04-29 00:12:16 +00:00
CMD [ "/home/cloudron/start.sh" ]
2015-04-26 19:45:32 +00:00