初始提交:MCP Server Demo(ERP/CRM/Bexell 三模组,动态 Bearer Token 鉴权)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 先安装依赖,利用层缓存
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
-i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# 复制源代码
|
||||
COPY src/ ./src/
|
||||
|
||||
EXPOSE 8001
|
||||
|
||||
# 环境变量通过 .env 文件或 docker run -e 注入
|
||||
WORKDIR /app/src
|
||||
|
||||
CMD ["python", "server.py"]
|
||||
Reference in New Issue
Block a user