From 3df40715b40f1d8b4fbe8698daabd0760e7d3a83 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Wed, 28 Aug 2024 10:21:11 +0200 Subject: [PATCH] feat(python-script): Mount pip cache path Closes: #33 --- images/python-script/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/images/python-script/Dockerfile b/images/python-script/Dockerfile index 522236d..2fe425b 100644 --- a/images/python-script/Dockerfile +++ b/images/python-script/Dockerfile @@ -30,6 +30,5 @@ ENV PATH=/home/runner/.local/bin:$PATH COPY requirements.txt ./ -RUN set -e; \ - pip install --user -r requirements.txt; \ - rm -r /home/runner/.cache; +RUN --mount=type=cache,id=pip-cache,target=/home/runner/.cache/pip \ + pip install --user -r requirements.txt;