From c63319f70d42d2de4ff44f777ebe635632122c63 Mon Sep 17 00:00:00 2001 From: DISTinTheHouse Date: Wed, 20 May 2026 08:48:00 -0600 Subject: [PATCH 1/2] fix: use node 20 for whatsapp-web.js stability --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2a67936..4ac019f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ COPY . . RUN npm run build # ===== Stage 2: Production ===== -FROM node:22-slim AS production +FROM node:20-bookworm-slim AS production # Install Chrome/Chromium and required dependencies RUN apt-get update && apt-get install -y \ From 635236242e7ad701f0db112061ab6653d784f290 Mon Sep 17 00:00:00 2001 From: DISTinTheHouse Date: Wed, 20 May 2026 09:58:53 -0600 Subject: [PATCH 2/2] fix: resolve dashboard dependency conflicts during docker build --- dashboard/Dockerfile.traefik | 2 +- docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/Dockerfile.traefik b/dashboard/Dockerfile.traefik index d51ea42..fbb93b9 100644 --- a/dashboard/Dockerfile.traefik +++ b/dashboard/Dockerfile.traefik @@ -4,7 +4,7 @@ FROM node:20-alpine AS builder WORKDIR /app COPY package*.json ./ -RUN npm ci +RUN npm install --legacy-peer-deps COPY . . RUN npm run build diff --git a/docker-compose.yml b/docker-compose.yml index 229ea4f..6676487 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: profiles: ['with-proxy', 'full'] restart: unless-stopped ports: - - '127.0.0.1:${DASHBOARD_PORT:-2886}:80' + - '${DASHBOARD_PORT:-2886}:80' - '127.0.0.1:8080:8080' # Traefik dashboard volumes: - ./traefik/traefik.yml:/etc/traefik/traefik.yml:ro @@ -26,7 +26,7 @@ services: container_name: openwa-api restart: unless-stopped ports: - - '127.0.0.1:${API_PORT:-2785}:2785' + - '${API_PORT:-2785}:2785' expose: - '2785' environment: