promising solution using volume mount
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Pierre Geeraert
2025-12-05 10:08:57 +00:00
parent a65e99b199
commit e08016c103
2 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -8,11 +8,11 @@ WORKDIR /code/
COPY 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 -r requirements.txt
RUN --mount=type=cache,target=/opt/hostedtoolcache/pip pip install --upgrade pip
RUN --mount=type=cache,target=/opt/hostedtoolcache/pip pip list --outdated
RUN --mount=type=cache,target=/opt/hostedtoolcache/pip pip install --upgrade wheel
RUN --mount=type=cache,target=/opt/hostedtoolcache/pip pip install --upgrade setuptools
RUN --mount=type=cache,target=/opt/hostedtoolcache/pip pip install -r requirements.txt
# Copy the rest of your application code (Changes frequently, invalidates subsequent cache)
COPY . ./