This commit is contained in:
2026-01-21 19:06:57 -06:00
commit bf1b7dc0f9
14 changed files with 4699 additions and 0 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM node:18-alpine
# Install Chromium and dependencies
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont
# Set Puppeteer to use installed Chromium
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install --omit=dev --loglevel=verbose
# Copy application files
COPY . .
# Create uploads directory
RUN mkdir -p uploads
EXPOSE 3000
CMD ["node", "server.js"]