Update dockerfile
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m53s

This commit is contained in:
2025-12-02 11:13:21 +00:00
parent 795720dcd2
commit f6506aeeca
+2 -2
View File
@@ -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 . ./