This commit is contained in:
Tour
2025-12-06 20:22:17 +01:00
parent c915f7b98c
commit b59febb0f3
3 changed files with 80 additions and 3 deletions

View File

@@ -44,9 +44,10 @@ RUN apk add --no-cache \
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Create non-root user
RUN addgroup -g 1000 whatsapp && \
adduser -D -u 1000 -G whatsapp whatsapp
RUN groupadd -r whatsapp && useradd -r -g whatsapp whatsapp
#DEV Create non-root user
#RUN addgroup -S whatsapp || true && \
# adduser -D -S -G whatsapp whatsapp || true
# Copy dependencies from builder
COPY --from=builder --chown=whatsapp:whatsapp /app/node_modules ./node_modules