Files

38 lines
668 B
Docker
Raw Permalink Normal View History

FROM node:22-alpine
2025-10-30 04:27:43 -04:00
WORKDIR /app
2025-11-03 17:56:15 -05:00
# Install Chromium, fonts, and dependencies for Puppeteer
RUN apk add --no-cache \
wget \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont \
font-noto-emoji
# Tell Puppeteer to use the installed Chromium
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
2025-10-30 04:27:43 -04:00
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install --omit=dev
2025-10-30 04:27:43 -04:00
# Copy application files
COPY . .
# Create data directory for SQLite database
RUN mkdir -p /app/data
# Expose port
EXPOSE 5000
# Start the application
CMD ["node", "server.js"]