prthm11 commited on
Commit
95dc020
·
verified ·
1 Parent(s): 57ee749

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -2,14 +2,15 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install dependencies
6
- RUN pip install fastmcp
7
 
8
- # Copy your code and resources
9
  COPY . .
10
 
11
  # Expose the HF default port
12
  EXPOSE 7860
13
 
14
- # Run the server on port 7860
15
- CMD ["python", "server.py", "--port", "7860"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install dependencies - including uvicorn which FastMCP needs for SSE
6
+ RUN pip install fastmcp uvicorn
7
 
8
+ # Copy everything (including your 'resource' folder)
9
  COPY . .
10
 
11
  # Expose the HF default port
12
  EXPOSE 7860
13
 
14
+ # Run the server
15
+ # We use uvicorn because FastMCP SSE transport is an ASGI app
16
+ CMD ["python", "server.py"]