# Use Debian Bookworm as the base image FROM debian:bookworm-slim # Install Node.js and npm RUN apt-get update && apt-get install -y \ curl \ gnupg \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && apt-get install -y nodejs \ fonts-liberation fonts-dejavu fontconfig \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Create app directory WORKDIR /usr/src/app # Copy package.json and package-lock.json (if available) COPY package*.json ./ # Install dependencies RUN npm install # Copy application code COPY . . # Start the application CMD ["npm", "start"]