Spaces:
Paused
Paused
Download Dockerfile from LiveSportmm/CM-data: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/LiveSportmm/CM-data/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LiveSportmm/CM-data/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LiveSportmm/CM-data/resolve/main/Dockerfile
1.18 kB
| # Playwright အတွက် လိုအပ်တဲ့ Python နဲ့ Browser dependencies တွေအကုန်ပါပြီးသား Official Image ကို သုံးပါမယ် | |
| FROM mcr.microsoft.com/playwright/python:v1.42.0-jammy | |
| # Container ထဲက အလုပ်လုပ်မယ့် Directory ကို သတ်မှတ်မယ် | |
| WORKDIR /app | |
| # လိုအပ်တဲ့ file တွေကို container ထဲ ကူးထည့်မယ် | |
| COPY requirements.txt . | |
| COPY cinemm_full_scraper.py . | |
| # Python packages တွေကို install လုပ်မယ် | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Playwright ရဲ့ Chromium browser binary ကို container ထဲ ဒေါင်းလုဒ်ဆွဲမယ် | |
| RUN playwright install chromium | |
| # Script ကို run မယ့် command (ဥပမာအနေနဲ့ "John Wick" နဲ့ run ပြထားပါတယ်) | |
| # Environment variable output တွေကို console မှာ တန်းမြင်ရအောင် PYTHONUNBUFFERED=1 သုံးထားပါတယ် | |
| ENV PYTHONUNBUFFERED=1 | |
| CMD ["python", "cinemm_full_scraper.py"] | |