Jethro85 commited on
Commit
9af7eb1
·
1 Parent(s): 6908e60

Spaces: switch to Python 3.10 and preinstall PyYAML/Cython

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -23,5 +23,4 @@ ENV PORT=7860 PYTHONUNBUFFERED=1
23
  EXPOSE 7860
24
 
25
  # Gunicorn loads Flask app from run.py
26
- CMD ["gunicorn", "run:app", "--workers", "2", "--threads", "8", "--timeout", "120", "--bind", "0.0.0.0:${PORT}"]
27
-
 
23
  EXPOSE 7860
24
 
25
  # Gunicorn loads Flask app from run.py
26
+ CMD ["sh", "-c", "exec gunicorn run:app --workers 2 --threads 8 --timeout 120 --bind 0.0.0.0:${PORT:-7860}"]