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