update: add common

This commit is contained in:
tao.chen
2026-07-27 15:37:58 +08:00
parent e56bf0e56b
commit 1c03a32298
8 changed files with 91 additions and 9 deletions
+19
View File
@@ -0,0 +1,19 @@
# runtime/Dockerfile
FROM python:3.12-slim
WORKDIR /app
# 安装 uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
COPY pyproject.toml uv.lock ./
COPY common ./common
COPY runtime ./runtime
RUN uv sync --frozen --no-dev --package backend
EXPOSE 8001
CMD ["uv", "run", "--package", "runtime", "uvicorn", "runtime.main:app", "--host", "0.0.0.0", "--port", "8001"]