mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-25 22:47:24 +00:00
Gogs actually needs sshd
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,9 +1,10 @@
|
||||
FROM girish/base:0.2.0
|
||||
|
||||
USER cloudron
|
||||
RUN apt-get update && \
|
||||
apt-get install -y openssh-server && \
|
||||
rm -r /var/cache/apt /var/lib/apt/lists
|
||||
|
||||
# gogs uses this env to detect current user
|
||||
ENV USER cloudron
|
||||
ADD supervisor/ /etc/supervisor/conf.d/
|
||||
|
||||
RUN cd /tmp && \
|
||||
wget https://github.com/gogits/gogs/releases/download/v0.6.1/linux_amd64.zip && \
|
||||
@@ -13,5 +14,10 @@ RUN cd /tmp && \
|
||||
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" ]
|
||||
|
||||
|
Reference in New Issue
Block a user