aqul commited on
Commit
b6be9f9
·
verified ·
1 Parent(s): 2be7e16

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -16,11 +16,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
16
  RUN --mount=type=secret,id=GITHUB_REPO,required=true \
17
  git clone $(cat /run/secrets/GITHUB_REPO) .
18
 
19
- RUN pip install --no-cache-dir -r requirements.txt
 
20
 
21
  ENV FLASK_ENV=production
22
  ENV PORT=7860
23
 
24
  EXPOSE 7860
25
 
26
- CMD ["python", "app.py"]
 
16
  RUN --mount=type=secret,id=GITHUB_REPO,required=true \
17
  git clone $(cat /run/secrets/GITHUB_REPO) .
18
 
19
+ RUN pip install --no-cache-dir -r requirements.txt \
20
+ gunicorn
21
 
22
  ENV FLASK_ENV=production
23
  ENV PORT=7860
24
 
25
  EXPOSE 7860
26
 
27
+ CMD ["gunicorn", "-w", "2", "--threads", "4", "-b", "0.0.0.0:7860", "app:app"]