From b5cc0f4888cadb9e49a8907b308a152803430f92 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Wed, 15 Oct 2025 16:02:31 +0200 Subject: [PATCH] chore(docker): use docker cache mount for pip install step --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 53e0153..8a35979 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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