Skip to content

Commit

Permalink
Development: accept PRUNE_PACKAGE_CACHE argument in Dockerfile
Browse files Browse the repository at this point in the history
Use `ARG` in Dockerfile to invalidate the cache when this argument changes.

Requires readthedocs/common#244
  • Loading branch information
humitos committed Dec 3, 2024
1 parent bfae64f commit f8fe654
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f8fe654

Please sign in to comment.