aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-09-04 10:04:15 +0100
committerGravatar GitHub <[email protected]>2021-09-04 10:04:15 +0100
commit2ce7bdd88bb943b7a10eb409bfb1802076762541 (patch)
tree49895c3c85a2c8cec2d033b51bd0028c548a4e22 /Dockerfile
parentMerge pull request #579 from python-discord/jb3/update-k8s-path (diff)
parentMerge branch 'main' into jb3/django-prometheus (diff)
Merge pull request #575 from python-discord/jb3/django-prometheus
Add Django Prometheus
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index c07fc2e2..7d1dab74 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,6 +26,11 @@ 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 \
METRICITY_DB_URL=postgres://localhost \