try to use cache
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m40s

This commit is contained in:
Pierre Geeraert
2025-06-03 10:43:15 +01:00
parent 6a52ed2f66
commit 9afe770202
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ WORKDIR /code/
COPY requirements.txt ./
COPY django_code ./
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip
RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install --upgrade pip
RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python django_code/manage.py migrate