techavenger123 commited on
Commit
a42fc70
·
1 Parent(s): 6760d6b

Fix gunicorn PATH issue, use python -m gunicorn

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -10,7 +10,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
  COPY --chown=user . /app
11
 
12
  USER user
13
- ENV PATH="/home/user/.local/bin:"
14
 
15
  EXPOSE 7860
16
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app:app"]
 
10
  COPY --chown=user . /app
11
 
12
  USER user
 
13
 
14
  EXPOSE 7860
15
+ CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app:app"]