soumyadipkarforma commited on
Commit
e9dffc9
·
verified ·
1 Parent(s): 39ee3e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
  FROM node:18-slim
2
- # Install the GitHub server and an MCP proxy to handle the SSE web connection
3
- RUN npm install -g @modelcontextprotocol/server-github @punkpeye/mcp-proxy
4
 
5
- # Use port 7860 (Hugging Face's default port)
 
 
 
 
6
  EXPOSE 7860
7
 
8
- # The proxy starts the GitHub server and exposes it on the web port
9
- ENTRYPOINT ["mcp-proxy", "--port", "7860", "npx", "-y", "@modelcontextprotocol/server-github"]
 
 
1
  FROM node:18-slim
 
 
2
 
3
+ # Install the GitHub MCP server
4
+ RUN npm install -g @modelcontextprotocol/server-github
5
+
6
+ # Set the port for Hugging Face Spaces
7
+ ENV PORT=7860
8
  EXPOSE 7860
9
 
10
+ # This command starts the server specifically in SSE mode for the web
11
+ ENTRYPOINT ["npx", "-y", "@modelcontextprotocol/server-github"]
12
+ CMD ["--sse"]