Krishna172912 commited on
Commit
15afac8
·
unverified ·
1 Parent(s): c914b7e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -16,5 +16,8 @@ COPY . .
16
  # Expose port 7860 (Hugging Face strictly requires this port)
17
  EXPOSE 7860
18
 
19
- # Command to run your FastAPI app (accounting for your back_end folder!)
20
- CMD ["uvicorn", "back_end.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
16
  # Expose port 7860 (Hugging Face strictly requires this port)
17
  EXPOSE 7860
18
 
19
+ # Move into the back_end folder before starting the server
20
+ WORKDIR /app/back_end
21
+
22
+ # Run the app directly from inside that folder
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]