From 59282ab8b4e81cbff6aec82d626ad8feed094d99 Mon Sep 17 00:00:00 2001 From: Luca Ferroni Date: Sat, 21 Dec 2024 17:04:49 +0100 Subject: [PATCH] Moves Django runserver command in CMD instead of ENTRYPOINT in Dockerfile --- Dockerfile | 1 + entrypoint | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5d02025d..bef97c70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,3 +43,4 @@ FROM python-run-stage AS backend COPY . ${APP_HOME} ENTRYPOINT ["/entrypoint"] +CMD ["python3", "demo/manage.py", "runserver", "0.0.0.0:8080"] diff --git a/entrypoint b/entrypoint index 001b2c0c..28007576 100644 --- a/entrypoint +++ b/entrypoint @@ -15,4 +15,4 @@ if [ ! -e "/app/demo/demodesk/db.sqlite3" ]; then python3 demo/manage.py loaddata demo.json fi -python3 demo/manage.py runserver 0.0.0.0:8080 +exec "$@"