credent007 commited on
Commit
4054540
·
verified ·
1 Parent(s): 385afe7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -25,5 +25,6 @@ RUN pip install -r requirements.txt
25
  COPY . .
26
 
27
  # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
28
- CMD ["python", "model_loader.py"]
 
29
 
 
25
  COPY . .
26
 
27
  # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
28
+ # CMD ["python", "model_loader.py"]
29
+ CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port $PORT"]
30