From ec64154cf68a7600f78da6d35a7166ea425b3c6f Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 3 Sep 2021 22:31:39 +0100 Subject: Add note on BUILDING_DOCKER --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 46f45bf3..7d1dab74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ -- cgit v1.2.3