pingtest/Dockerfile
Dan Hamik 42b91cbf72
All checks were successful
/ Plan (push) Successful in 3m21s
install ping in container
2024-11-26 12:43:45 -06:00

11 lines
306 B
Docker

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