diff options
author | 2021-09-03 22:31:39 +0100 | |
---|---|---|
committer | 2021-09-03 22:31:39 +0100 | |
commit | ec64154cf68a7600f78da6d35a7166ea425b3c6f (patch) | |
tree | 7da2232a8f782825d46f0d2153c6393838efd5fd | |
parent | Follow standard for dependency versioning for django-prometheus (diff) |
Add note on BUILDING_DOCKER
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,10 @@ COPY . . # Set dummy variables so collectstatic can load settings.py RUN \ + # Set BUILDING_DOCKER to anything but undefined so settings.py + # does not insert django_prometheus into the list of installed apps. + # This prevents django_prometheus from attempting to connect to the database + # when the collectstatic task is ran. BUILDING_DOCKER=yes \ SECRET_KEY=dummy_value \ DATABASE_URL=postgres://localhost \ |