Moves Django runserver command in CMD instead of ENTRYPOINT in Dockerfile

This commit is contained in:
Luca Ferroni 2024-12-21 17:04:49 +01:00
parent eb4a4cd7b7
commit 59282ab8b4
2 changed files with 2 additions and 1 deletions

View File

@ -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"]

View File

@ -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 "$@"