From f8fe6547ce3143259af2ad3227370cf4dead7985 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 3 Dec 2024 11:20:30 +0100 Subject: [PATCH 1/2] Development: accept `PRUNE_PACKAGE_CACHE` argument in Dockerfile Use `ARG` in Dockerfile to invalidate the cache when this argument changes. Requires https://github.com/readthedocs/common/pull/244 --- dockerfiles/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index ac212d462c6..70377f38ab5 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -64,6 +64,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python WORKDIR /tmp +ARG PRUNE_PACKAGE_CACHE=0 COPY requirements/docker.txt docker.txt RUN ~/.local/bin/uv pip sync --system docker.txt From 4142315e4fedcc58e0881133200ea70b1dadd3ff Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 4 Dec 2024 15:34:38 +0100 Subject: [PATCH 2/2] Update dockerfiles/Dockerfile --- dockerfiles/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 70377f38ab5..8f2dd02e121 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -64,7 +64,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python WORKDIR /tmp -ARG PRUNE_PACKAGE_CACHE=0 +ARG PRUNE_PYTHON_PACKAGE_CACHE=0 COPY requirements/docker.txt docker.txt RUN ~/.local/bin/uv pip sync --system docker.txt