MrA7A commited on
Commit
8ee8375
·
verified ·
1 Parent(s): 8e9eb33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -9
Dockerfile CHANGED
@@ -1,20 +1,13 @@
1
- # Use official Python image
2
  FROM python:3.10-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy requirements
8
  COPY requirements.txt .
9
 
10
- # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy app code
14
- COPY . .
15
 
16
- # Expose the port Hugging Face Spaces uses
17
  EXPOSE 7860
18
 
19
- # Run the FastAPI app with uvicorn
20
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ COPY app.py .
 
10
 
 
11
  EXPOSE 7860
12
 
13
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]