Add screenshot server

This commit is contained in:
Andras Schmelczer 2026-02-03 19:21:51 +00:00
parent c6f869e95f
commit 25865acd44
8 changed files with 1247 additions and 0 deletions

21
og-screenshot/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM node:20-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install
# Install Chromium for Playwright
RUN npx playwright install --with-deps chromium
COPY tsconfig.json ./
COPY src/ src/
RUN npm run build
EXPOSE 8002
CMD ["node", "dist/server.js"]