pingtest/Dockerfile
Dan Hamik 2faccdade3
All checks were successful
/ Plan (push) Successful in 2m34s
/ Plan (pull_request) Successful in 9s
/ Deploy (pull_request) Successful in 36s
Reorder Dockerfile to reduce build size
2025-01-07 11:37:11 -06:00

11 lines
306 B
Docker

FROM debian:bullseye-slim
#
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 apt update && apt install python3 python3-pip iputils-ping -y
RUN pip3 install -r /requirements.txt
RUN apt clean
CMD ["/init.sh"]