Merge pull request #796 from tcely/patch-6
Some checks failed
Run Django tests for TubeSync / test (3.10) (push) Has been cancelled
Run Django tests for TubeSync / test (3.11) (push) Has been cancelled
Run Django tests for TubeSync / test (3.12) (push) Has been cancelled
Run Django tests for TubeSync / test (3.8) (push) Has been cancelled
Run Django tests for TubeSync / test (3.9) (push) Has been cancelled
Run Django tests for TubeSync / containerise (push) Has been cancelled

Restrict `PYTHONPYCACHEPREFIX` to `pipenv`
This commit is contained in:
meeb 2025-03-01 09:50:48 +11:00 committed by GitHub
commit 20e879767c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,9 +297,6 @@ RUN --mount=type=tmpfs,target=/cache \
--mount=type=cache,id=apt-cache-cache,sharing=locked,target=/var/cache/apt \
--mount=type=bind,source=Pipfile,target=/app/Pipfile \
set -x && \
# Remove __pycache__ directories from the image
PYTHONPYCACHEPREFIX=/cache/pycache && \
export PYTHONPYCACHEPREFIX && \
# Update from the network and keep cache
rm -f /etc/apt/apt.conf.d/docker-clean && \
apt-get update && \
@ -325,6 +322,7 @@ RUN --mount=type=tmpfs,target=/cache \
HOME="/tmp/${HOME#/}" \
XDG_CACHE_HOME='/cache' \
PIPENV_VERBOSITY=64 \
PYTHONPYCACHEPREFIX=/cache/pycache \
pipenv install --system --skip-lock && \
# Clean up
apt-get -y autoremove --purge \