work #4

Merged
paradizelost merged 2 commits from work into main 2025-08-18 19:03:17 +00:00
Showing only changes of commit 0cca15af60 - Show all commits

View File

@@ -1,11 +1,9 @@
FROM debian:bullseye-slim FROM debian:trixie-slim
# #
COPY logpingresult.py /usr/local/bin/
COPY requirements.txt / COPY requirements.txt /
COPY init.sh / COPY init.sh /
RUN chmod +x /init.sh RUN chmod +x /init.sh
RUN chmod +x /usr/local/bin/logpingresult.py RUN chmod +x /usr/local/bin/logpingresult.py
RUN apt update && apt install python3 python3-pip iputils-ping -y RUN apt update && apt install python3 python3-pip iputils-ping -y && pip3 install -r /requirements.txt --break-system-packages && apt clean
RUN pip3 install -r /requirements.txt COPY logpingresult.py /usr/local/bin/
RUN apt clean
CMD ["/init.sh"] CMD ["/init.sh"]