getapi commited on
Commit
1f409af
·
1 Parent(s): 29f7c3d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
- FROM python:3.11
2
  ARG DEPS
3
  WORKDIR /code
4
  RUN chmod 777 /code
5
  RUN $DEPS
6
  RUN mkdir -p /.cache && chmod 777 /.cache
7
- RUN playwright install-deps
8
  RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
9
  --mount=type=secret,id=APP_URL,mode=0444,required=true \
10
  curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
11
  COPY . .
12
- CMD ["sh", "-c", "playwright install firefox && gunicorn app:app --bind 0.0.0.0:7860 --timeout 120 --workers 4 --worker-class gevent --log-level=warn"]
 
1
+ FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
2
  ARG DEPS
3
  WORKDIR /code
4
  RUN chmod 777 /code
5
  RUN $DEPS
6
  RUN mkdir -p /.cache && chmod 777 /.cache
7
+ #RUN playwright install-deps
8
  RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
9
  --mount=type=secret,id=APP_URL,mode=0444,required=true \
10
  curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
11
  COPY . .
12
+ CMD ["sh", "-c", gunicorn app:app --bind 0.0.0.0:7860 --timeout 120 --workers 4 --worker-class gevent --log-level=warn"]