alan5543 commited on
Commit
adcc516
·
1 Parent(s): 23f0273
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,17 +1,21 @@
1
  FROM python:3.10
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 --upgrade pip && pip install --no-cache-dir -r requirements.txt
9
 
10
  # Copy the application code
 
11
  COPY app.py .
12
 
13
  # Expose the port
 
14
  EXPOSE 7860
15
 
16
  # Run the FastMCP server
17
- CMD ["uvicorn", "app:mcp.app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10
2
 
3
  # Set working directory
4
+
5
  WORKDIR /app
6
 
7
  # Copy requirements and install dependencies
8
+
9
+ COPY requirements.txt . RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copy the application code
12
+
13
  COPY app.py .
14
 
15
  # Expose the port
16
+
17
  EXPOSE 7860
18
 
19
  # Run the FastMCP server
20
+
21
+ CMD ["uvicorn", "app:fastapi_app", "--host", "0.0.0.0", "--port", "7860"]