Add the sms-wa-bridge playbook
This commit is contained in:
1 parent
d248675643
commit
26a0654fea
14 files changed
+1409
No files matched your search
@@ -0,0 +1,21 @@
|
||||
FROM node:20-slim
|
||||
|
||||
# Chromium deps for whatsapp-web.js (puppeteer)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
chromium ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 \
|
||||
libatk1.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libgtk-3-0 libnspr4 \
|
||||
libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils \
|
||||
wget xauth && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
||||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN npm install --omit=dev
|
||||
COPY server.js rules.json entrypoint.sh ./
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
Reference in new issue
Block a user