Update wrapper/dockerfile

This commit is contained in:
frarol96 2025-08-16 06:13:06 +00:00
parent 6cfd2aa6af
commit 729f70bab1

View File

@ -12,10 +12,11 @@ RUN apt-get update && \
# Faster, cleaner pip # Faster, cleaner pip
RUN pip install --no-cache-dir pip setuptools wheel 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 \ RUN if [ "$WITH_PLAYWRIGHT" = "1" ]; then \
pip install --no-cache-dir playwright && \ pip install --no-cache-dir playwright==1.45.0 && \
python -m playwright install --with-deps chromium; \ python -m playwright install --with-deps chromium ; \
fi fi
# Wrapper entrypoint # Wrapper entrypoint