Download Dockerfile from iq7se2/7: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/iq7se2/7/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/iq7se2/7/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/iq7se2/7/resolve/main/Dockerfile
572 Bytes
| FROM python:3.11-slim | |
| # تثبيت التبعيات النظامية لـ Playwright | |
| RUN apt-get update && apt-get install -y \ | |
| libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \ | |
| libcups2 libdrm2 libdbus-1-3 libxkbcommon0 \ | |
| libxcomposite1 libxdamage1 libxext6 libxfixes3 \ | |
| libxrandr2 libgbm1 libasound2 wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN playwright install chromium | |
| RUN playwright install-deps chromium | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |