Fu01978 commited on
Commit
4a62cda
·
verified ·
1 Parent(s): 89056a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -12,7 +12,7 @@ WORKDIR $HOME/app
12
 
13
  # 4. Install requirements
14
 
15
- RUN pip install --no-cache-dir flask
16
 
17
  # 5. Copy the rest of the application
18
  COPY --chown=user . .
@@ -21,4 +21,8 @@ COPY --chown=user . .
21
  EXPOSE 7860
22
 
23
  # 7. Launch
24
- CMD ["python3", "app.py"]
 
 
 
 
 
12
 
13
  # 4. Install requirements
14
 
15
+ RUN pip install --no-cache-dir flask gunicorn
16
 
17
  # 5. Copy the rest of the application
18
  COPY --chown=user . .
 
21
  EXPOSE 7860
22
 
23
  # 7. Launch
24
+ CMD ["gunicorn", \
25
+ "--bind", "0.0.0.0:7860", \
26
+ "--timeout", "1000", \
27
+ "--worker-class", "gthread", \
28
+ "app:app"]