FROM python:3.12-slim

RUN pip install --no-cache-dir pytest-playwright

RUN playwright install

RUN playwright install-deps

COPY . /code

WORKDIR /code

RUN pip install --no-cache-dir -e .

RUN rm -rf /code

RUN ln -s /code/recipes /recipes
RUN ln -s /code/envfiles /envfiles
