Skip to content

Commit 53d6b22

Browse files
committed
add:增加docker-compose脚本
1 parent f6f9b6c commit 53d6b22

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ RUN pip install --no-cache-dir -r requirements.txt
2222

2323
# 复制应用代码
2424
COPY app/ ./app/
25-
COPY data/ ./data/
2625
COPY start_server.py .
2726

2827
# 创建临时目录

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Docker安装全模块
2+
3+
version: '3'
4+
services:
5+
# MCP 接入点服务
6+
mcp-endpoint-server:
7+
image: ghcr.nju.edu.cn/xinnan-tech/voiceprint-api:latest
8+
container_name: voiceprint-api
9+
restart: always
10+
networks:
11+
- default
12+
ports:
13+
- "8005:8005"
14+
security_opt:
15+
- seccomp:unconfined
16+
environment:
17+
- TZ=Asia/Shanghai
18+
volumes:
19+
# 配置文件目录
20+
- ./data:/app/data
21+
networks:
22+
default:

0 commit comments

Comments
 (0)