diff options
author | 2021-10-06 23:20:56 +0200 | |
---|---|---|
committer | 2021-10-06 23:22:45 +0200 | |
commit | ce75197fc1d0b2086631277d29f9396908bdc86c (patch) | |
tree | 2eab9855ab1a83352a5d83050d8a1fc0524f3285 /Dockerfile | |
parent | Merge branch 'main' into subdomains-to-query-paths (diff) | |
parent | Merge pull request #599 from python-discord/fix-http-links (diff) |
Merge branch 'master' into subdomains-to-query-paths
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -FROM python:3.9.5-slim-buster +FROM --platform=linux/amd64 python:3.9-slim-buster # Allow service to handle stops gracefully STOPSIGNAL SIGQUIT @@ -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 \ |