Dockerfile aktualisiert
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -42,6 +42,12 @@ RUN chown crime1:crime1 /home/crime1/.Chats/Chat.txt && chmod 600 /home/crime1/.
|
|||||||
COPY /Level/Level2/data.txt /home/crime2/data.txt
|
COPY /Level/Level2/data.txt /home/crime2/data.txt
|
||||||
RUN chown crime2:crime2 /home/crime2/data.txt && chmod 600 /home/crime2/data.txt
|
RUN chown crime2:crime2 /home/crime2/data.txt && chmod 600 /home/crime2/data.txt
|
||||||
|
|
||||||
|
|
||||||
|
# Level5
|
||||||
|
COPY Level/Level5/systemd-hdtob.py /usr/local/bin/systemd-hdtob.py
|
||||||
|
RUN chmod +x /usr/local/bin/systemd-hdtob.py
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||||||
RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /etc/ssh/sshd_config
|
RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /etc/ssh/sshd_config
|
||||||
|
|
||||||
@@ -49,6 +55,7 @@ RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /etc/ssh/sshd_c
|
|||||||
RUN rm -fr /etc/update-motd.d/*
|
RUN rm -fr /etc/update-motd.d/*
|
||||||
RUN mkdir -p /guide
|
RUN mkdir -p /guide
|
||||||
|
|
||||||
|
|
||||||
RUN printf "\e[37m↚ ↜ ↞ ↤ ↫ ↭ ↬ ↦ ↣ ↝ ↛ ↮ ↛ ↝ ↣ ↦ ↬ ↭ ↫ ↤ ↞ ↜ ↚\e[0m\n" > /guide/crime1.txt
|
RUN printf "\e[37m↚ ↜ ↞ ↤ ↫ ↭ ↬ ↦ ↣ ↝ ↛ ↮ ↛ ↝ ↣ ↦ ↬ ↭ ↫ ↤ ↞ ↜ ↚\e[0m\n" > /guide/crime1.txt
|
||||||
RUN printf "\n" >> /guide/crime1.txt
|
RUN printf "\n" >> /guide/crime1.txt
|
||||||
RUN printf "\e[37m✧\e[0m \e[31mEin unfreundliches Willkommen im Escape Room\e[0m \e[37m✧\e[0m\n" >> /guide/crime1.txt
|
RUN printf "\e[37m✧\e[0m \e[31mEin unfreundliches Willkommen im Escape Room\e[0m \e[37m✧\e[0m\n" >> /guide/crime1.txt
|
||||||
@@ -91,5 +98,6 @@ RUN sed -i 's/^session\s\+optional\s\+pam_motd/#session optional pam_motd/' /etc
|
|||||||
|
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
CMD ["sh", "-c", "echo escape-room > /etc/hostname && /usr/sbin/sshd -D"]
|
CMD ["/start.sh"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user