From b143d92cb202bbb4dec237c4c9abfa07f1a702e1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 26 May 2026 10:08:41 +0200 Subject: [PATCH] fix: consolidate RUN commands in Dockerfile for improved layer caching --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7eb521b..3353fe0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,11 @@ ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 WORKDIR /app -COPY pyproject.toml uv.lock /app/ -RUN apk --no-cache update && apk --no-cache upgrade -RUN pip install --no-cache-dir uv -RUN uv sync --no-dev --no-install-project # Install only dependencies, not the local project package +COPY pyproject.toml uv.lock /app/ + +RUN apk --no-cache update && apk --no-cache upgrade \ +&& pip install --no-cache-dir uv \ +&& uv sync --no-dev --no-install-project # Install only dependencies, not the local project package COPY . /app/ RUN chmod +x /app/entrypoint.sh