From 7cc8de596e2a0fcae151e3cef35282ddd7ee576f Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Mon, 15 Dec 2025 19:53:00 -0500 Subject: [PATCH] fix(docker): changes Dockerfile command order to use pip cache --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52cf033..871c23d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,16 @@ FROM python:3-slim WORKDIR /app +# Copy requirements first (so pip install can be cached) +COPY requirements.txt . + +# Python library requirements +RUN pip install --no-cache-dir -r requirements.txt + # Bricktracker COPY . . -# Fix line endings and set executable permissions for entrypoint script -RUN sed -i 's/\r$//' entrypoint.sh && chmod +x entrypoint.sh - -# Python library requirements -RUN pip --no-cache-dir install -r requirements.txt +# Set executable permissions for entrypoint script +RUN chmod +x entrypoint.sh ENTRYPOINT ["./entrypoint.sh"]