Omkar1806 commited on
Commit
fbf4b1a
·
verified ·
1 Parent(s): 15196e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -11,12 +11,12 @@ WORKDIR /app
11
  COPY --chown=user requirements.txt .
12
  RUN pip install --no-cache-dir --user -r requirements.txt
13
 
 
14
  COPY --chown=user . .
15
 
16
  # Expose port
17
  EXPOSE 7860
18
 
19
- # Run the app
20
- # Pehle ye tha: CMD ["uvicorn", "app:app", ...]
21
- # Ab ye hoga kyunki app.py 'server' folder ke andar hai:
22
- CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
  COPY --chown=user requirements.txt .
12
  RUN pip install --no-cache-dir --user -r requirements.txt
13
 
14
+ # Copy all project files
15
  COPY --chown=user . .
16
 
17
  # Expose port
18
  EXPOSE 7860
19
 
20
+ # --- YAHAN CHANGE HAI ---
21
+ # Direct uvicorn ki jagah hum python module run karenge jo main() ko call karega
22
+ CMD ["python", "-m", "server.app"]