update: add entrypoint

This commit is contained in:
tao.chen
2026-07-29 10:26:59 +08:00
parent a4e4e5b0db
commit df7ccff2b7
3 changed files with 35 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
set -e
# 1. 在后台启动 fs-backend
echo "Starting fs-backend in background..."
cd /app/fs-backend
# 使用创建好的虚拟环境或 uv 运行服务(以 uvicorn 为例,请根据你的实际入口修改 main:app)
uv run uvicorn main:app --host 0.0.0.0 --port 8000 &
# 2. 返回根目录或原始工作目录
cd ~/workspace
# 3. 将控制权交给容器主进程(即 opencode 及传入的 CLI 参数)
exec "$@"