From 212b1051a73985ea22052ade72ade73df9a37930 Mon Sep 17 00:00:00 2001 From: Orfeo Terkuci Date: Tue, 24 Mar 2026 20:03:58 +0100 Subject: [PATCH] Reorder Dockerfile instructions: move source code copy before dependency installation --- backend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 03a6f2d..5cd632f 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -21,6 +21,8 @@ ENV UV_PROJECT_ENVIRONMENT=/usr/local COPY pyproject.toml . # Copy lock file for reproducible builds COPY uv.lock . +# Copy source code +COPY backend/ . # Install Python dependencies using UV (this will use the lock file for reproducibility) RUN uv sync --frozen RUN uv run playwright install --with-deps chromium @@ -30,8 +32,6 @@ RUN uv run playwright install --with-deps chromium COPY backend/package*.json ./ RUN npm ci --omit=dev -# Copy source code -COPY backend/ . # Create a non-root user for security # Grant write access to /app so the auto-updater can extract files RUN adduser --system --uid 1001 backenduser \