Spaces:
Sleeping
Sleeping
Download Dockerfile from dimdimm/crawling-datas: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/dimdimm/crawling-datas/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dimdimm/crawling-datas/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dimdimm/crawling-datas/resolve/main/Dockerfile
576 Bytes
| # Render: Python + Playwright Chromium siap pakai | |
| FROM mcr.microsoft.com/playwright/python:v1.62.0-jammy | |
| WORKDIR /app | |
| # deps Python dulu (cache layer) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # browser sudah ada di base image, pastikan chromium terpasang | |
| RUN playwright install chromium | |
| COPY . . | |
| # Render Free: 0.1 CPU / 512MB → 1 worker saja (hemat RAM), timeout 300s karena scraping lama | |
| # Spin down = cold start 30-60s, normal untuk free tier | |
| CMD gunicorn --bind 0.0.0.0:${PORT:-10000} --workers 1 --threads 2 --timeout 300 app:app | |