Spaces:
Paused
Paused
Download Dockerfile from morikotikk/browser: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/spaces/morikotikk/browser/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/morikotikk/browser/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/morikotikk/browser/resolve/main/Dockerfile
759 Bytes
| # Базовый образ сразу с Python и Playwright (экономит 20 минут сборки) | |
| FROM mcr.microsoft.com/playwright/python:v1.44.0-jammy | |
| # Устанавливаем только виртуальный экран (быстро) | |
| RUN apt-get update && apt-get install -y xvfb && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Кэшируем зависимости | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Создаем папку для скриншотов-монитора | |
| RUN mkdir -p static | |
| # Запускаем: виртуальный экран -> сервер | |
| CMD ["xvfb-run", "--server-args=-screen 0 1280x1024x24", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |