z1th1z commited on
Commit
175276f
·
verified ·
1 Parent(s): 9cf0e05

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,15 +1,11 @@
1
- # Base image with Python
2
  FROM python:3.10-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy files
8
  COPY requirements.txt ./
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- COPY app ./app
12
 
13
- # Expose port (HF listens on $PORT)
14
  ENV PORT 7860
15
- CMD ["uvicorn", "app.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
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY . .
9
 
 
10
  ENV PORT 7860
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]