Optimize Playwright install

This commit is contained in:
Bryan Cross
2026-03-30 17:38:07 -05:00
parent 3a1e489dd6
commit 0287597d02

View File

@@ -12,7 +12,7 @@ WORKDIR /opt/hermes
# Install Python and Node dependencies in one layer, no cache
RUN pip install --no-cache-dir -e ".[all]" --break-system-packages && \
npm install --prefer-offline --no-audit && \
npx playwright install --with-deps chromium && \
npx playwright install --with-deps chromium --only-shell && \
cd /opt/hermes/scripts/whatsapp-bridge && \
npm install --prefer-offline --no-audit && \
npm cache clean --force