Dockerfile aktualisiert

This commit is contained in:
2025-11-14 10:21:53 +00:00
parent a80e41bd02
commit 3c3335b9e1

View File

@@ -73,6 +73,11 @@ RUN echo 'if [ -f "/guide/$(whoami).txt" ]; then cat "/guide/$(whoami).txt"; fi'
RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile
RUN rm -f /etc/legal
RUN sed -i 's/^session\s\+optional\s\+pam_motd/#session optional pam_motd/' /etc/pam.d/sshd
EXPOSE 22 EXPOSE 22
CMD ["sh", "-c", "echo escape-room > /etc/hostname && /usr/sbin/sshd -D"] CMD ["sh", "-c", "echo escape-room > /etc/hostname && /usr/sbin/sshd -D"]