Skip to content

Commit a528e05

Browse files
build: 添加 Dockerfile 和 Smithery 配置
- 新增 Dockerfile 用于构建和运行应用程序- 添加 Smithery 配置文件,定义启动命令和配置模式- 为项目增加容器化支持,便于部署和测试
1 parent b524040 commit a528e05

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
FROM node:18-alpine
1+
# 使用Python 3.9作为基础镜像
2+
FROM python:3.9-slim
23

4+
# 设置工作目录
35
WORKDIR /app
46

5-
# Copy package files
6-
COPY package*.json ./
7+
# 复制requirements.txt文件并安装依赖
8+
COPY requirements.txt .
9+
RUN pip install --no-cache-dir -r requirements.txt
710

8-
# Install dependencies
9-
RUN npm install
10-
11-
# Copy application code
11+
# 复制应用代码
1212
COPY . .
1313

14-
# Build the application
15-
RUN npm run build
14+
# 暴露端口(如果需要)
15+
# EXPOSE 5000
1616

17-
# Command will be provided by smithery.yaml
18-
CMD ["node", "dist/index.js"]
17+
# 运行应用
18+
CMD ["python", "-m", "xiyan_mcp_server"]

0 commit comments

Comments
 (0)