Rsnarsna commited on
Commit
4e7ecaf
·
verified ·
1 Parent(s): 8c4591c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -10,8 +10,8 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Make port 80 available to the world outside this container
14
  EXPOSE 7860
15
 
16
- # Run the application
17
- CMD ["python", "run.py"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose port 7860 to allow external access
14
  EXPOSE 7860
15
 
16
+ # Start the FastAPI application using Uvicorn
17
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]