Don't create Pytest cache in container by default

pull/722/head
jeanluc 2 months ago
parent 467315d2c5
commit 9ca18ff416
No known key found for this signature in database
GPG Key ID: 3EB52D4C754CD898

@ -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

Loading…
Cancel
Save