PD03 commited on
Commit
37118c1
·
verified ·
1 Parent(s): 6e436cb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -1,20 +1,14 @@
1
  FROM python:3.11-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy requirements and install dependencies
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy application code
11
  COPY app.py .
12
 
13
- # Expose port for Hugging Face Spaces
14
  EXPOSE 7860
15
 
16
- # Set environment variable for the port
17
  ENV PORT=7860
18
 
19
- # Run the MCP server
20
- CMD ["python", "app.py"]
 
1
  FROM python:3.11-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY app.py .
9
 
 
10
  EXPOSE 7860
11
 
 
12
  ENV PORT=7860
13
 
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]