From ae219a2533d2f131679659af15bbb33ee1448946 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Mon, 17 Jul 2023 23:09:11 +0200 Subject: [PATCH] Properly collectstatic on docker build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 75ec9f3..16cebd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,5 +14,5 @@ ADD . /code/ RUN python -m pip install gunicorn -RUN python manage.py collectstatic +RUN python manage.py collectstatic --no-input --clear CMD bash -c "python manage.py migrate && gunicorn -b 0.0.0.0:8000 --capture-output --error-logfile - --access-logfile - spejstore.wsgi:application"