adding some cache for PIP
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5m45s

This commit is contained in:
2025-12-02 10:47:20 +00:00
parent c1229b348e
commit 85962b11a6
+5 -5
View File
@@ -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 . ./