arcticaurora commited on
Commit
5aaa204
·
verified ·
1 Parent(s): 4be8ecf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM alpine
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ RUN apk add --no-cache python3 py3-pip git py3-uv nodejs npm
7
+
8
+ # Clone One-MCP
9
+ RUN git clone https://github.com/One-MCP/multi-mcp.git .
10
+ RUN uv venv
11
+ RUN . .venv/bin/activate && uv pip install -r requirements.txt
12
+
13
+ # Copy your config and tools
14
+ COPY mcp.json /app/mcp.json
15
+ COPY tools/ /app/tools/
16
+
17
+ # Cache directories
18
+ RUN mkdir /app/.uv-cache && chmod -R 777 /app/.uv-cache
19
+ ENV UV_CACHE_DIR=/app/.uv-cache
20
+ RUN mkdir /app/.npm-cache && chmod -R 777 /app/.npm-cache
21
+ ENV npm_config_cache=/app/.npm-cache
22
+
23
+ # One-MCP specific settings
24
+ ENV CONFIG=/app/mcp.json
25
+ ENV TRANSPORT=sse
26
+ ENV USE_NAMESPACE=True
27
+
28
+ # Use One-MCP's port and command
29
+ EXPOSE 7860
30
+ CMD ["/app/.venv/bin/hypercorn", "src.main:app", "--bind", "0.0.0.0:7860"]