chore(deploy): serve SPA without nginx and slim docker image

This commit is contained in:
shiyu
2025-12-09 14:21:20 +08:00
parent 055c240079
commit 16283dea09
4 changed files with 44 additions and 56 deletions

View File

@@ -1,5 +1,4 @@
#!/bin/bash
set -e
python migrate/run.py
nginx -g 'daemon off;' &
exec gunicorn -k uvicorn.workers.UvicornWorker -w 1 -b 0.0.0.0:8000 main:app
exec gunicorn -k uvicorn.workers.UvicornWorker -w 1 -b 0.0.0.0:80 main:app