mirror of
https://gitee.com/qqtt-ah/ai-crm.git
synced 2026-11-24 01:09:20 +08:00
6 lines
254 B
Bash
Executable File
6 lines
254 B
Bash
Executable File
#!/bin/sh
|
|
# 使用镜像内 Python 加载挂载的源码与 .deps(避免 venv shebang 路径不可移植)
|
|
set -e
|
|
export PYTHONPATH="/app:/app/.deps${PYTHONPATH:+:$PYTHONPATH}"
|
|
exec python -m uvicorn api.main:app --host 0.0.0.0 --port "${PORT:-8201}"
|