first commit

This commit is contained in:
AyrisAI
2026-05-14 22:17:26 +03:00
commit 2248a4c546
6 changed files with 117 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:20-slim
# Chromium ve gerekli kütüphaneleri kuruyoruz (WhatsApp için şart)
RUN apt-get update && apt-get install -y \
chromium \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
# Puppeteer'ın Docker içinde çalışması için gerekli bayrak
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
CMD ["node", "whatsapp-worker.js"]