From 85962b11a64906b86d35430184c9393d63b7ccce Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Tue, 2 Dec 2025 10:47:20 +0000 Subject: [PATCH] adding some cache for PIP --- dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfile b/dockerfile index d3ff758..1fff7d6 100644 --- a/dockerfile +++ b/dockerfile @@ -8,11 +8,11 @@ WORKDIR /code/ COPY requirements.txt ./ # Install dependencies. This layer is highly cacheable by BuildKit + GHA setup. -RUN pip install --upgrade pip -RUN pip list --outdated -RUN pip install --upgrade wheel -RUN pip install --upgrade setuptools -RUN pip install --no-cache-dir -r requirements.txt +RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip +RUN --mount=type=cache,target=/root/.cache/pip pip list --outdated +RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade wheel +RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade setuptools +RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt # Copy the rest of your application code (Changes frequently, invalidates subsequent cache) COPY . ./