From 9ca18ff416fd22c567557a31512f5b2ee3d6fabe Mon Sep 17 00:00:00 2001 From: jeanluc Date: Fri, 8 Nov 2024 17:15:37 +0100 Subject: [PATCH] Don't create Pytest cache in container by default --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e7e06057..a179473a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,7 +65,9 @@ ENV PYTHONPATH=/usr/local \ # https://stackoverflow.com/questions/64808915/should-pycache-folders-be-included-in-production-containers # This avoids permission denied errors because the app directory is root-owned. PYTHONDONTWRITEBYTECODE=1 \ - DATASTORE_PATH="/datastore" + DATASTORE_PATH="/datastore" \ + # Disable creation of Pytest cache dir when running tests inside the container by default + PYTEST_ADDOPTS="-p no:cacheprovider" EXPOSE 5000