feat: add docker support

This commit is contained in:
Sun-ZhenXing
2025-06-15 12:35:56 +08:00
parent e1b112f401
commit b53f744aa7
10 changed files with 187 additions and 31 deletions

19
docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
x-default: &default
restart: unless-stopped
volumes:
- &localtime /etc/localtime:/etc/localtime:ro
- &timezone /etc/timezone:/etc/timezone:ro
logging:
driver: json-file
options:
max-size: 1m
services:
app:
<<: *default
build:
context: .
dockerfile: Dockerfile
image: ${DOCKER_REGISTRY:-docker.io}/local/mcp-template-python:${BUILD_VERSION:-latest}
ports:
- "3001:3001"