Update dockerfile with gunicorn for prod

This commit is contained in:
2025-11-22 15:06:17 +08:00
parent ec5d52f208
commit 36c08b0ac1
3 changed files with 13 additions and 1 deletions

8
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
# Start API server in background
gunicorn "app:create_api_app()" --bind 0.0.0.0:5000 --workers 4 --access-logfile - &
# Start UI server in foreground
gunicorn "app:create_ui_app()" --bind 0.0.0.0:5100 --workers 4 --access-logfile -