mshaiel2004 commited on
Commit
8204b3d
·
verified ·
1 Parent(s): 4396349

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -28,5 +28,5 @@ COPY --chown=user . /code
28
  EXPOSE 7860
29
 
30
  # 8. Start the API
31
- # app.main:app points to 'app/main.py' file and 'app' object
32
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
28
  EXPOSE 7860
29
 
30
  # 8. Start the API
31
+ # CRITICAL FIX: "main:app" matches your file structure where main.py is at the root
32
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]