MKK25 commited on
Commit
311caf1
·
verified ·
1 Parent(s): 8f2c1e9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -22,6 +22,6 @@ RUN pip install --no-cache-dir --upgrade pip && \
22
 
23
  COPY --chown=user . /app
24
 
25
- EXPOSE 8000
26
 
27
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4", "--log-level", "info"]
 
22
 
23
  COPY --chown=user . /app
24
 
25
+ EXPOSE 7860
26
 
27
+ CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7860} --workers 4 --log-level info"]