anon4ik commited on
Commit
c4f3c3d
·
verified ·
1 Parent(s): 94d17ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -2,9 +2,10 @@ FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
2
  WORKDIR /code
3
  RUN chmod 777 /code
4
  RUN python -m pip install --upgrade pip && \
5
- pip install flask requests aiohttp curl playwright bs4 && \
6
  playwright install firefox
7
  RUN mkdir -p /.cache && chmod 777 /.cache
8
- RUN --mount=type=secret,id=token,mode=0444,required=true \ curl -H "Authorization: Bearer $(cat /run/secrets/token)" -o app.py https://huggingface.co/spaces/anon4ik/Space/blob/main/ms_designer.py
 
9
  COPY . .
10
  CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "gevent"]
 
2
  WORKDIR /code
3
  RUN chmod 777 /code
4
  RUN python -m pip install --upgrade pip && \
5
+ pip install flask requests aiohttp playwright bs4 && \
6
  playwright install firefox
7
  RUN mkdir -p /.cache && chmod 777 /.cache
8
+ RUN --mount=type=secret,id=token,mode=0444,required=true \
9
+ curl -H "Authorization: Bearer $(cat /run/secrets/token)" -o app.py https://huggingface.co/spaces/anon4ik/Space/blob/main/ms_designer.py
10
  COPY . .
11
  CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "gevent"]