add docker support and update repository urls

This commit is contained in:
synt-xerror
2026-04-21 12:11:12 -03:00
parent 885a043e2b
commit e15ef5d007
5 changed files with 144 additions and 5 deletions

32
Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
FROM node:20-slim
# Install dependencies for Puppeteer/Chrome
RUN apt-get update && apt-get install -y \
chromium \
chromium-sandbox \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
fonts-thai-tlwg \
fonts-kacst \
fonts-freefont-ttf \
libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables for Puppeteer
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --omit=dev
# Copy application files
COPY . .
# Create necessary directories
RUN mkdir -p session logs
CMD ["node", "src/main.js"]