quote-system/Dockerfile

31 lines
547 B
Docker

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"]