From e01bf2864626b76880c9613071ebc9a18b0e2467 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Fri, 24 Apr 2020 21:26:21 -0400 Subject: [PATCH] collectstatic --- Dockerfile | 1 + config/settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ef0e69..08720f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,6 @@ COPY ui ui COPY manage.py manage.py COPY requirements.txt requirements.txt RUN pip install -r requirements.txt +RUN python manage.py collectstatic CMD ["gunicorn","-b",":8000", "-w", "4", "config.wsgi"] \ No newline at end of file diff --git a/config/settings.py b/config/settings.py index a57b519..b4c3fb1 100644 --- a/config/settings.py +++ b/config/settings.py @@ -122,3 +122,4 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.0/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') \ No newline at end of file