2
0
mirror of https://github.com/codl/forget synced 2024-12-25 06:32:15 +01:00

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

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