Switch whatsapp gateway to Debian node:18 to avoid Alpine Puppeteer bugs

This commit is contained in:
Antigravity 2026-06-13 23:23:58 -04:00
parent cfb5ca2d5c
commit 768217dc85
2 changed files with 2 additions and 8 deletions

View File

@ -28,16 +28,11 @@ spec:
mountPath: /app
containers:
- name: whatsapp-gateway
image: node:18-alpine
image: node:18
command:
- "sh"
- "-c"
- "apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont && cd /app && npm install && node server.js"
env:
- name: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
value: "true"
- name: PUPPETEER_EXECUTABLE_PATH
value: "/usr/bin/chromium-browser"
- "apt-get update && apt-get install -y libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 && cd /app && npm install && node server.js"
volumeMounts:
- name: app-code
mountPath: /app

View File

@ -26,7 +26,6 @@ const client = new Client({
}),
puppeteer: {
headless: true,
executablePath: '/usr/bin/chromium-browser',
args: [
'--no-sandbox',
'--disable-setuid-sandbox',