RockCoder23 commited on
Commit
3621cde
·
verified ·
1 Parent(s): c3066da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -10,8 +10,8 @@ COPY . /app
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Expose the port the app runs on
14
- EXPOSE 80
15
 
16
- # Run FastAPI using Uvicorn
17
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose port 8080 instead of port 80
14
+ EXPOSE 8080
15
 
16
+ # Run FastAPI using Uvicorn, binding to port 8080
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]