PhysicsUncomplicated commited on
Commit
ae551d5
·
verified ·
1 Parent(s): a377b93

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -1,17 +1,11 @@
1
  FROM python:3.10-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 rest of the app
11
  COPY . .
12
 
13
- # Expose the port (default Flask)
 
14
  EXPOSE 7860
15
 
16
- # Start the app
17
- CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
 
 
 
 
5
  COPY . .
6
 
7
+ RUN pip install --upgrade pip && pip install -r requirements.txt
8
+
9
  EXPOSE 7860
10
 
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]