Fizu123 commited on
Commit
dcd2db2
·
verified ·
1 Parent(s): c9ab430

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -1,17 +1,8 @@
1
  FROM python:3.9
2
  WORKDIR /app
3
-
4
- # Copy requirements file from root (jahan upload ki hai)
5
  COPY requirements.txt .
6
-
7
- # Install dependencies
8
  RUN pip install --no-cache-dir -r requirements.txt
9
-
10
- # Copy everything (poora app folder aur baki files)
11
  COPY . .
12
 
13
- # CHANGE IS HERE: python path set karein taake wo 'app' module dhoond sake
14
- ENV PYTHONPATH=/app
15
-
16
- # Command ab sahi path se chalega
17
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
  WORKDIR /app
 
 
3
  COPY requirements.txt .
 
 
4
  RUN pip install --no-cache-dir -r requirements.txt
 
 
5
  COPY . .
6
 
7
+ # Yeh line change ki hai: app.main ki jagah hum ensure kar rahe hain path sahi ho
8
+ CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]