summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-25 10:36:18 +0100
committerGitHub <noreply@github.com>2024-04-25 10:36:18 +0100
commitafa64fadf7e6904dfbafc5ecafd6ce08f652287f (patch)
tree06abdcd134fce27bcbfcdc3ba323c97969eb36e2
parent282c34c3b26ed2bc0c9f5e3c2de5940772f5c89c (diff)
parentb75c92cb35413a89ff0dce7b7420e6b2cd0daa9c (diff)
Merge pull request #36 from defencedigital/pyswitch
Now uses gunicorn to run the server instead of dev server
-rw-r--r--Dockerfile4
-rw-r--r--requirements.txt1
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