Add Discord notifications for image generation and snapshot creation
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user