FROM mcr.microsoft.com/playwright/python:v1.50.0-jammy

WORKDIR /app

ENV PYTHONUNBUFFERED=1

COPY scraper_service.py /app/scraper_service.py

RUN python -m pip install --no-cache-dir flask beautifulsoup4 playwright

EXPOSE 9777

CMD ["python", "scraper_service.py"]
