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