Update wrapper/dockerfile

This commit is contained in:
frarol96 2025-08-24 16:33:37 +00:00
parent 842261d5d5
commit 8f7be81be6

View File

@ -9,7 +9,7 @@ RUN apt-get update && \
RUN pip install --no-cache-dir pip setuptools wheel
# ---- (optional) Playwright runtime libs ----
# ---- (optional) Playwright OS libs ----
ARG WITH_PLAYWRIGHT=1
RUN if [ "$WITH_PLAYWRIGHT" = "1" ]; then \
set -eux; \
@ -22,10 +22,11 @@ RUN if [ "$WITH_PLAYWRIGHT" = "1" ]; then \
fi
# ---- install wrapper python deps (includes playwright) ----
# keep this separate from repo requirements; the wrapper must have playwright even if repo doesn't list it
COPY requirements.txt /app/requirements-wrapper.txt
RUN pip install --no-cache-dir -r /app/requirements-wrapper.txt
# ---- bring wrapper in ----
# ---- wrapper files ----
COPY wrapper.py /app/wrapper.py
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh