From 2faccdade3738d55d9bef9a6b0db4c6fdbe1e728 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Tue, 7 Jan 2025 11:37:11 -0600 Subject: [PATCH] Reorder Dockerfile to reduce build size --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6f4828c..beeb8d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file