Skip to content

Commit 2c68bb7

Browse files
committed
Update Dockerfile to use Node.js 20.15.0, upgrade whatsapp-web.js to v1.34.1, and configure Puppeteer to use a specified browser path
1 parent b95ded4 commit 2c68bb7

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.12.0-buster-slim
1+
FROM node:20.15.0-bookworm-slim
22

33
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
44

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
# - HA_BASE_URL=https://localhost:8123
1818
- LOG_LEVEL=debug
1919
- TZ=America/Guayaquil
20+
- BROWSER_PATH=/usr/bin/chromium
2021

2122
npm:
2223
image: whatsapp-ha:latest

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"true-di": "^3.0.0",
2121
"ts-command-line-args": "^2.3.1",
2222
"typescript-logger": "^5.0.1",
23-
"whatsapp-web.js": "1.32.0",
23+
"whatsapp-web.js": "1.34.1",
2424
"winston": "^3.8.2"
2525
},
2626
"devDependencies": {

src/config/WhatsappClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export function getClient (): Client {
77
}),
88
puppeteer: {
99
headless: true,
10+
executablePath: process.env.BROWSER_PATH ?? '/usr/bin/chromium',
1011
args: [
1112
'--no-sandbox',
1213
'--disable-setuid-sandbox',

0 commit comments

Comments
 (0)