justKevv commited on
Commit
bd79394
·
1 Parent(s): 40eae15
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -15,6 +15,6 @@ COPY . .
15
  # Hugging Face Spaces expects applications to run on this port
16
  EXPOSE 7860
17
 
18
- # Define the command to run your app
19
- # This assumes your main file is `main.py` and the FastAPI variable is `app`
20
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
  # Hugging Face Spaces expects applications to run on this port
16
  EXPOSE 7860
17
 
18
+ # --- CORRECTED COMMAND ---
19
+ # This now correctly points to the 'app' variable inside the 'api/index.py' file
20
+ CMD ["uvicorn", "api.index:app", "--host", "0.0.0.0", "--port", "7860"]