RishitMishra commited on
Commit
3e846c6
·
verified ·
1 Parent(s): 7cbfd20

Update DockerFile

Browse files
Files changed (1) hide show
  1. DockerFile +1 -7
DockerFile CHANGED
@@ -1,18 +1,12 @@
1
  FROM python:3.10-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy dependency list + install
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy your app code
11
  COPY app.py .
12
 
13
- # Expose port 7860 (required by Hugging Face)
14
  EXPOSE 7860
15
 
16
- # Command to launch your app
17
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
18
-
 
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 app.py .
9
 
 
10
  EXPOSE 7860
11
 
12
+ CMD ["python", "app.py"]