This commit is contained in:
mike
2025-12-12 09:12:03 +01:00
parent 08908d80d5
commit 92f145e6b3
12 changed files with 1638 additions and 71 deletions

View File

@@ -26,6 +26,7 @@ RUN npm run postinstall || true
# Copy application files
COPY server.js ./
COPY swagger.yml ./
# ==================== RUNTIME STAGE ====================
FROM node:20-alpine
@@ -55,6 +56,7 @@ COPY --from=builder --chown=whatsapp:whatsapp /app/node_modules ./node_modules
# Copy application files
COPY --chown=whatsapp:whatsapp server.js ./
COPY --chown=whatsapp:whatsapp package*.json ./
COPY --chown=whatsapp:whatsapp swagger.yml ./
# Create volume directories
RUN mkdir -p /app/data /app/media /app/.wwebjs_cache /app/.wwebjs_auth && \