Dockerfile aktualisiert
This commit is contained in:
@@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
openssh-server sudo ca-certificates nano file htop vim locales \
|
openssh-server sudo ca-certificates nano file htop vim locales \
|
||||||
python3 python3-pip procps \
|
python3 python3-pip procps cron \
|
||||||
&& locale-gen en_US.UTF-8 \
|
&& locale-gen en_US.UTF-8 \
|
||||||
&& update-locale LANG=en_US.UTF-8 \
|
&& update-locale LANG=en_US.UTF-8 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
@@ -62,7 +62,6 @@ RUN chmod +x /usr/local/bin/systemd-hdtob.py
|
|||||||
COPY Level/Level5/watchdog.py /root/watchdog.py
|
COPY Level/Level5/watchdog.py /root/watchdog.py
|
||||||
RUN chmod 700 /root/watchdog.py
|
RUN chmod 700 /root/watchdog.py
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y cron
|
|
||||||
RUN (crontab -l; echo "@reboot /usr/bin/python3 /root/watchdog.py &") | crontab -
|
RUN (crontab -l; echo "@reboot /usr/bin/python3 /root/watchdog.py &") | crontab -
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user