getapi commited on
Commit
b906bdf
·
1 Parent(s): 31ec2cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -7,5 +7,4 @@ RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
7
  curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
8
  COPY . .
9
  RUN chmod -R 777 /code
10
- CMD python -c 'import asyncio; from app import get_html; asyncio.run(get_html())'
11
- CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "gevent"]
 
7
  curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
8
  COPY . .
9
  RUN chmod -R 777 /code
10
+ CMD python -c 'import asyncio; from app import get_html, update_html; asyncio.run(get_html()); asyncio.run(update_html())' && gunicorn app:app --bind 0.0.0.0:7860 --timeout 120 --workers 4 --worker-class gevent