aqul commited on
Commit
febb420
·
verified ·
1 Parent(s): ddc7937

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -4
Dockerfile CHANGED
@@ -23,15 +23,12 @@ RUN --mount=type=secret,id=GITHUB_REPO,required=true \
23
  RUN pip install --no-cache-dir -r requirements.txt
24
  RUN pip install --no-cache-dir flask[async]
25
 
26
-
27
  EXPOSE 7860
28
 
29
- RUN --mount=type=secret,id=GOOGLE_API_KEY \
30
- cat /run/secrets/GOOGLE_API_KEY
31
 
32
  ENV FLASK_APP=app.py
33
  ENV FLASK_RUN_HOST=0.0.0.0
34
  ENV FLASK_ENV=production
35
  ENV PORT=7860
36
 
37
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
23
  RUN pip install --no-cache-dir -r requirements.txt
24
  RUN pip install --no-cache-dir flask[async]
25
 
 
26
  EXPOSE 7860
27
 
 
 
28
 
29
  ENV FLASK_APP=app.py
30
  ENV FLASK_RUN_HOST=0.0.0.0
31
  ENV FLASK_ENV=production
32
  ENV PORT=7860
33
 
34
+ CMD ["flask", "run", "--host=0.0.0.0"]