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
|
mountPath: /app
|
||||||
containers:
|
containers:
|
||||||
- name: whatsapp-gateway
|
- name: whatsapp-gateway
|
||||||
image: node:18-alpine
|
image: node:18
|
||||||
command:
|
command:
|
||||||
- "sh"
|
- "sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
- "apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont && cd /app && npm install && node server.js"
|
- "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"
|
||||||
env:
|
|
||||||
- name: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
|
|
||||||
value: "true"
|
|
||||||
- name: PUPPETEER_EXECUTABLE_PATH
|
|
||||||
value: "/usr/bin/chromium-browser"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: app-code
|
- name: app-code
|
||||||
mountPath: /app
|
mountPath: /app
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ const client = new Client({
|
||||||
}),
|
}),
|
||||||
puppeteer: {
|
puppeteer: {
|
||||||
headless: true,
|
headless: true,
|
||||||
executablePath: '/usr/bin/chromium-browser',
|
|
||||||
args: [
|
args: [
|
||||||
'--no-sandbox',
|
'--no-sandbox',
|
||||||
'--disable-setuid-sandbox',
|
'--disable-setuid-sandbox',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue