Compare commits

...

2 Commits

Author SHA1 Message Date
a81b56eaf7 Merge pull request 'Reorder Dockerfile to reduce build size' (#2) from work into main
Reviewed-on: #2
2025-01-07 11:37:37 -06:00
2faccdade3 Reorder Dockerfile to reduce build size
All checks were successful
/ Plan (push) Successful in 2m34s
/ Plan (pull_request) Successful in 9s
/ Deploy (pull_request) Successful in 36s
2025-01-07 11:37:11 -06:00

View File

@ -1,11 +1,11 @@
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 apt update && apt install python3 python3-pip iputils-ping -y
RUN pip3 install -r /requirements.txt
RUN apt clean
CMD ["/init.sh"]