whatsapp_bridge/Dockerfile aktualisiert

This commit is contained in:
2026-04-15 17:53:43 +00:00
parent e140774642
commit 3b5fb7ff79

View File

@@ -1,7 +1,5 @@
# Wir nutzen das Standard Alpine Image von Docker Hub
FROM alpine:3.19 FROM alpine:3.19
# System-Abhängigkeiten (inkl. bash für bashio Kompatibilität)
RUN apk add --no-cache \ RUN apk add --no-cache \
nodejs \ nodejs \
npm \ npm \
@@ -15,20 +13,16 @@ RUN apk add --no-cache \
bash \ bash \
curl curl
# Puppeteer Konfiguration
ENV CHROME_BIN=/usr/bin/chromium-browser \ ENV CHROME_BIN=/usr/bin/chromium-browser \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /app WORKDIR /app
# Node-Abhängigkeiten installieren
COPY package.json ./ COPY package.json ./
RUN npm install --production RUN npm install --production
# App-Code kopieren
COPY . . COPY . .
# Start-Skript vorbereiten
RUN chmod a+x /app/run.sh RUN chmod a+x /app/run.sh
CMD [ "/app/run.sh" ] CMD [ "/app/run.sh" ]