fix: consolidate RUN commands in Dockerfile for improved layer caching

This commit is contained in:
2026-05-26 10:08:41 +02:00
parent 9d7a7f7432
commit b143d92cb2
+4 -3
View File
@@ -5,9 +5,10 @@ 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
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