From b75c92cb35413a89ff0dce7b7420e6b2cd0daa9c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 25 Apr 2024 10:33:04 +0100 Subject: Now uses gunicorn to run the server instead of dev server --- Dockerfile | 4 ++-- requirements.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 449915b..426c85e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,5 +37,5 @@ RUN python manage.py migrate # Expose the port on which your Django application will run EXPOSE 8080 -# Run the application -CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"] +# Run the application using Gunicorn +CMD ["gunicorn", "ded.wsgi:application", "--bind", "0.0.0.0:8080"] diff --git a/requirements.txt b/requirements.txt index 1aeb141..f3dae6d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ django-crispy-forms #django-extensions #faker>=13.14.0,<14.0.0 django-htmx==1.17.3 +gunicorn==22.0.0 -- cgit v1.2.3