getapi commited on
Commit
7c0b306
·
1 Parent(s): c14a8fa

Update Dockerfile

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