diff --git a/wrapper/dockerfile b/wrapper/dockerfile index 56d76d0..4224b83 100644 --- a/wrapper/dockerfile +++ b/wrapper/dockerfile @@ -12,10 +12,11 @@ RUN apt-get update && \ # Faster, cleaner pip RUN pip install --no-cache-dir pip setuptools wheel -# Optional: bake Playwright in (pass --build-arg WITH_PLAYWRIGHT=1) +# Optional Playwright (driven by build-arg) +ARG WITH_PLAYWRIGHT=0 RUN if [ "$WITH_PLAYWRIGHT" = "1" ]; then \ - pip install --no-cache-dir playwright && \ - python -m playwright install --with-deps chromium; \ + pip install --no-cache-dir playwright==1.45.0 && \ + python -m playwright install --with-deps chromium ; \ fi # Wrapper entrypoint