Hammad712 commited on
Commit
e25268f
·
verified ·
1 Parent(s): 98c40ec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -17,5 +17,5 @@ COPY main.py .
17
  # Expose the port FastAPI will run on.
18
  EXPOSE 8000
19
 
20
- # Command to run the FastAPI app using uvicorn.
21
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
17
  # Expose the port FastAPI will run on.
18
  EXPOSE 8000
19
 
20
+ # Command to run the FastAPI app using uvicorn via the module interface.
21
+ CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]