From 48942c89b526274d560d6e9452f2bb675be391c2 Mon Sep 17 00:00:00 2001 From: Bryan Cross Date: Mon, 30 Mar 2026 15:27:11 -0500 Subject: [PATCH] Further npm optimizations --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ffe0fc2f..7efb14a6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,10 @@ 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 - -WORKDIR /opt/hermes/scripts/whatsapp-bridge -RUN npm install --prefer-offline --no-audit + npx playwright install --with-deps chromium && \ + cd /opt/hermes/scripts/whatsapp-bridge && \ + npm install --prefer-offline --no-audit && \ + npm cache clean --force WORKDIR /opt/hermes RUN chmod +x /opt/hermes/docker/entrypoint.sh