From f6506aeecafff7761e8f4a2b9acc9a19ad7d8d5d Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Tue, 2 Dec 2025 11:13:21 +0000 Subject: [PATCH] Update dockerfile --- dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 1fff7d6..0354841 100644 --- a/dockerfile +++ b/dockerfile @@ -7,12 +7,12 @@ WORKDIR /code/ # Copy only the requirements file first (Changes infrequently) COPY requirements.txt ./ -# Install dependencies. This layer is highly cacheable by BuildKit + GHA setup. + 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 +RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt # Copy the rest of your application code (Changes frequently, invalidates subsequent cache) COPY . ./