Update Dockerfile
Browse files- 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
|
| 6 |
playwright install firefox
|
| 7 |
RUN mkdir -p /.cache && chmod 777 /.cache
|
| 8 |
-
RUN --mount=type=secret,id=token,mode=0444,required=true \
|
|
|
|
| 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"]
|