Files
pingtest/Dockerfile
Dan Hamik 0241f9f36c
All checks were successful
/ Plan (push) Successful in 4m24s
/ Plan (pull_request) Successful in 28s
/ Deploy (pull_request) Successful in 28s
fixing order of operations
2025-08-18 13:57:56 -05:00

9 lines
326 B
Docker

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