From 2cf2dabe7148dbdf4854afe5d2320dc42e7eedbe Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Mon, 18 Aug 2025 13:18:41 -0500 Subject: [PATCH] trying a flattened approach to dockerfile --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6911d02..5465354 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ FROM debian:bullseye-slim # -RUN apt update && apt install python3 python3-pip -y -COPY enphase.py /usr/local/bin/ COPY requirements.txt / COPY init.sh / -RUN chmod +x /init.sh -RUN chmod +x /usr/local/bin/enphase.py -RUN pip3 install -r /requirements.txt -RUN apt clean +RUN apt update && apt install python3 python3-pip -y && pip3 install -r /requirements.txt && apt clean +COPY enphase.py /usr/local/bin/ +RUN chmod +x /init.sh && chmod +x /usr/local/bin/enphase.py CMD ["/init.sh"] \ No newline at end of file