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