mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-12-22 15:16:31 +00:00
24 lines
767 B
Docker
24 lines
767 B
Docker
FROM girish/base:0.2.0
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y openssh-server && \
|
|
rm -r /var/cache/apt /var/lib/apt/lists
|
|
|
|
ADD supervisor/ /etc/supervisor/conf.d/
|
|
|
|
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
|
|
|
|
ADD app.ini.template /home/cloudron/app.ini.template
|
|
ADD start.sh /home/cloudron/start.sh
|
|
|
|
# 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
|
|
|
|
CMD [ "/home/cloudron/start.sh" ]
|
|
|