调整文档路径

This commit is contained in:
2026-09-02 17:31:52 +08:00
parent 01b3798e02
commit 674ff09db1
43 changed files with 0 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1
# MCP Auth Admin — 后端(FastAPI,纯 API 服务,不托管前端静态文件)
FROM python:3.12-slim
WORKDIR /app
# 依赖单独成层,利用缓存
COPY requirements.txt ./requirements.txt
RUN pip install --no-cache-dir --timeout 120 --retries 5 \
-i https://pypi.tuna.tsinghua.edu.cn/simple \
-r requirements.txt
# 后端源码
COPY app ./app
WORKDIR /app
EXPOSE 8003
# 不挂载前端静态文件,纯 API 服务
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8003"]