FROM python:3.10

RUN pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir selenium-wire blinker==1.7.0 flask python-dateutil

RUN apt-get update && apt-get -y install chromium

RUN mkdir /app

WORKDIR /app

ENV PYTHONUNBUFFERED=1

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