moelove commited on
Commit
ff60ece
·
1 Parent(s): 43e1a80

add Dockerfile

Browse files

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>

Files changed (2) hide show
  1. .dockerignore +19 -0
  2. Dockerfile +30 -0
.dockerignore ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ .Python
6
+ *.so
7
+ *.egg
8
+ *.egg-info
9
+ dist
10
+ build
11
+ .venv
12
+ venv
13
+ .git
14
+ .gitignore
15
+ *.log
16
+ .DS_Store
17
+ .pytest_cache
18
+ .mypy_cache
19
+ .ruff_cache
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ ripgrep \
8
+ git \
9
+ curl \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install Node.js for MCP servers
13
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
14
+ && apt-get install -y nodejs \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Copy project files
18
+ COPY . .
19
+
20
+ # Install Python dependencies
21
+ RUN pip install --no-cache-dir -e .
22
+
23
+ # Create config directory
24
+ RUN mkdir -p /root/.config/amcp
25
+
26
+ # Set environment variables
27
+ ENV PYTHONUNBUFFERED=1
28
+
29
+ # Default command
30
+ CMD ["amcp"]