Merge branch 'main' of https://git.st-server.org/Schule/Debian-Retzel
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -62,21 +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 "\n" >> /guide/crime1.txt
|
||||||
RUN printf "\e[37m↚ ↜ ↞ ↤ ↫ ↭ ↬ ↦ ↣ ↝ ↛ ↮ ↛ ↝ ↣ ↦ ↬ ↭ ↫ ↤ ↞ ↜ ↚\e[0m\n" >> /guide/crime1.txt
|
RUN printf "\e[37m↚ ↜ ↞ ↤ ↫ ↭ ↬ ↦ ↣ ↝ ↛ ↮ ↛ ↝ ↣ ↦ ↬ ↭ ↫ ↤ ↞ ↜ ↚\e[0m\n" >> /guide/crime1.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN echo "crime2" > /guide/crime2.txt
|
RUN echo "crime2" > /guide/crime2.txt
|
||||||
|
|
||||||
RUN echo 'if [ -f "/guide/$(whoami).txt" ]; then cat "/guide/$(whoami).txt"; fi' >> /etc/bash.bashrc
|
RUN echo 'if [ -f "/guide/$(whoami).txt" ]; then cat "/guide/$(whoami).txt"; fi' >> /etc/bash.bashrc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
COPY motd /etc/motd
|
COPY motd /etc/motd
|
||||||
|
|
||||||
|
RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile
|
||||||
|
|
||||||
EXPOSE 22
|
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"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user