diff --git a/Dockerfile b/Dockerfile index 2cc429d..03a1a7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM python:3.8.2 -RUN pip install django WORKDIR /app COPY config config +COPY api api COPY manage.py manage.py COPY requirements.txt requirements.txt RUN pip install -r requirements.txt -CMD ["python","manage.py","runserver", "0.0.0.0:8000"] \ No newline at end of file +CMD ["gunicorn","-b",":8000", "-w", "4", "config.wsgi"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c48b47a..fb7a08e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ django djangorestframework -pygments \ No newline at end of file +pygments +gunicorn +whitenoise \ No newline at end of file