From d8a2462b40e4df33f5b13b1347a960cd364cf0b8 Mon Sep 17 00:00:00 2001 From: Quickbed Date: Thu, 13 Nov 2025 11:49:47 +0000 Subject: [PATCH 1/2] Dockerfile aktualisiert --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa48e82..50f2410 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,8 +75,5 @@ COPY motd /etc/motd EXPOSE 22 +CMD ["sh", "-c", "echo escape-room > /etc/hostname && /usr/sbin/sshd -D"] -CMD ["sh", "-c", "echo escape-room > /etc/hostname && exec bash"] - - -CMD ["/usr/sbin/sshd","-D"] From a036cbf5c7c257b16d5a21429c1809901cb9d82f Mon Sep 17 00:00:00 2001 From: Quickbed Date: Thu, 13 Nov 2025 11:53:52 +0000 Subject: [PATCH 2/2] Dockerfile aktualisiert --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50f2410..e02b687 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,18 +62,17 @@ RUN printf "\033[38;2;107;114;128mTipp: \033[0m\033[37m…\033[0m\n" >> /guide/c RUN printf "\n" >> /guide/crime1.txt RUN printf "\e[37m↚ ↜ ↞ ↤ ↫ ↭ ↬ ↦ ↣ ↝ ↛ ↮ ↛ ↝ ↣ ↦ ↬ ↭ ↫ ↤ ↞ ↜ ↚\e[0m\n" >> /guide/crime1.txt - - - RUN echo "crime2" > /guide/crime2.txt - RUN echo 'if [ -f "/guide/$(whoami).txt" ]; then cat "/guide/$(whoami).txt"; fi' >> /etc/bash.bashrc + + + COPY motd /etc/motd +RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile EXPOSE 22 - CMD ["sh", "-c", "echo escape-room > /etc/hostname && /usr/sbin/sshd -D"]