chore: add convert-to-cooklang and Python deps to Dockerfile
Build and Deploy / build-and-deploy (push) Successful in 4m21s

This commit is contained in:
2026-05-21 11:59:31 -04:00
parent 5117c9d445
commit f6040f5445
+4 -3
View File
@@ -4,9 +4,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl python3 python3-pip python3-venv tini && \ ca-certificates curl python3 python3-pip python3-venv tini && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Install recipe-scrapers and Playwright in a virtualenv to isolate dependencies. # Install recipe-scrapers, Playwright, and Anthropic SDK in a virtualenv to isolate dependencies.
RUN python3 -m venv /opt/roux-venv && \ RUN python3 -m venv /opt/roux-venv && \
/opt/roux-venv/bin/pip install --no-cache-dir recipe-scrapers==15.11.0 playwright==1.52.0 && \ /opt/roux-venv/bin/pip install --no-cache-dir recipe-scrapers==15.11.0 playwright==1.52.0 anthropic pyyaml && \
rm -rf /root/.cache/pip rm -rf /root/.cache/pip
# Install Playwright system dependencies and Chromium browser. # Install Playwright system dependencies and Chromium browser.
@@ -18,8 +18,9 @@ RUN mkdir -p /build && date -u '+%Y-%m-%d %H:%M UTC' > /build/build-time
ADD roux-server /usr/local/bin/roux-server ADD roux-server /usr/local/bin/roux-server
ADD scripts/scrape-recipe /usr/local/bin/scrape-recipe ADD scripts/scrape-recipe /usr/local/bin/scrape-recipe
ADD scripts/convert-to-cooklang /usr/local/bin/convert-to-cooklang
RUN chmod +x /usr/local/bin/roux-server /usr/local/bin/scrape-recipe RUN chmod +x /usr/local/bin/roux-server /usr/local/bin/scrape-recipe /usr/local/bin/convert-to-cooklang
ENV PATH="/opt/roux-venv/bin:${PATH}" ENV PATH="/opt/roux-venv/bin:${PATH}"
ENTRYPOINT ["/usr/bin/tini", "-s", "--"] ENTRYPOINT ["/usr/bin/tini", "-s", "--"]