Switch whatsapp gateway to Debian node:18 to avoid Alpine Puppeteer bugs
This commit is contained in:
parent
cfb5ca2d5c
commit
768217dc85
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ const client = new Client({
|
|||
}),
|
||||
puppeteer: {
|
||||
headless: true,
|
||||
executablePath: '/usr/bin/chromium-browser',
|
||||
args: [
|
||||
'--no-sandbox',
|
||||
'--disable-setuid-sandbox',
|
||||
|
|
|
|||
Loading…
Reference in New Issue