fix: upgrade Node 18 to 22 and fix Puppeteer compatibility

- Switch from Alpine to Debian slim for correct Chromium architecture
  (fixes ARM/Apple Silicon support)
- Upgrade Puppeteer 21 to 24, use system Chromium via PUPPETEER_EXECUTABLE_PATH
- Replace removed page.waitForTimeout() with setTimeout
- Set NODE_ENV=production in Dockerfile to prevent pino-pretty import
- Improve error logging with Pino's { err: error } pattern
- Add build: . to docker-compose for local development builds
This commit is contained in:
Samuel Enocsson
2026-03-19 23:03:27 +01:00
parent 0b55aeb632
commit d567c4bca9
8 changed files with 322 additions and 143 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
"express": "^4.18.2",
"fs": "^0.0.1-security",
"pino": "^10.3.1",
"puppeteer": "^21.0.0",
"puppeteer": "^24.40.0",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2",
"sqlite3": "^5.1.7"