arsh1101 commited on
Commit
c4ccb12
·
verified ·
1 Parent(s): 648b637

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -23,7 +23,8 @@ COPY . /app
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # Expose the port
26
- EXPOSE 8000
27
 
28
  # Command to start Uvicorn
29
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # Expose the port
26
+ EXPOSE 7860
27
 
28
  # Command to start Uvicorn
29
+ CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]
30
+