chore(docker): use docker cache mount for pip install step

This commit is contained in:
2025-10-15 16:02:31 +02:00
parent e85aaf143e
commit b5cc0f4888

View File

@@ -9,7 +9,8 @@ WORKDIR /app
COPY requirements.txt ./
# Install dependencies to a target directory
RUN pip install --no-cache-dir --no-deps --disable-pip-version-check --target=/app/site-packages -r requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-cache-dir --no-deps --disable-pip-version-check --target=/app/site-packages -r requirements.txt
# Use Alpine as the base image for a much smaller footprint
FROM python:3.13-slim