docker: cache pip http cache only, not wheel cache

This commit is contained in:
codl 2022-08-20 00:08:43 +02:00
parent 70b90366b6
commit 1524554a40
1 changed files with 2 additions and 2 deletions

View File

@ -3,10 +3,10 @@
FROM python:3.10.6-bullseye AS pydeps
WORKDIR /usr/src/app
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip==22.2.2
RUN --mount=type=cache,target=/root/.cache/pip/http pip install --upgrade pip==22.2.2
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip/http pip install -r requirements.txt
FROM pydeps AS pynodedeps