prthm11 commited on
Commit
86f768d
·
verified ·
1 Parent(s): 8c6eb1d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -11
Dockerfile CHANGED
@@ -2,19 +2,14 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- && rm -rf /var/lib/apt/lists/*
8
-
9
- COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
 
 
12
  COPY . .
13
 
 
14
  EXPOSE 7860
15
 
16
- ENV PYTHONUNBUFFERED=1
17
- ENV MCP_ALLOW_HTTP=1
18
-
19
- # Run the custom script that patches host validation
20
- CMD ["python", "server.py"]
 
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", "main.py", "--port", "7860"]