Add Discord notifications for image generation and snapshot creation

This commit is contained in:
ImBenji
2026-02-13 21:47:12 +00:00
parent a23defb327
commit 813ed39102
13 changed files with 733 additions and 980 deletions

View File

@@ -1,6 +1,6 @@
FROM node:18-slim
# Install dependencies for Puppeteer/Chrome
# Install dependencies for Puppeteer/Chrome and Playwright + ffmpeg
RUN apt-get update && apt-get install -y \
wget \
gnupg \
@@ -25,6 +25,7 @@ RUN apt-get update && apt-get install -y \
libxkbcommon0 \
libxrandr2 \
xdg-utils \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
@@ -33,8 +34,14 @@ COPY package*.json ./
RUN npm install
# install playwright browsers
RUN npx playwright install chromium --with-deps
COPY . .
# create temp videos directory
RUN mkdir -p /tmp/videos
EXPOSE 3000
CMD ["node", "api.js"]