DSDUDEd commited on
Commit
8efe901
·
verified ·
1 Parent(s): 05c6a99

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +7 -2
dockerfile CHANGED
@@ -2,10 +2,15 @@ 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
  EXPOSE 7860
11
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copy and install dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy app.py into the container
10
+ COPY app.py .
11
 
12
+ # Expose the port for Hugging Face
13
  EXPOSE 7860
14
+
15
+ # Tell Docker to run app.py
16
+ CMD ["python", "app.py"]