FROM node:lts RUN apt-get update && \ apt-get install -y xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable x11-apps chromium && \ rm -rf /var/lib/apt/lists/* WORKDIR /usr/src/app COPY package*.json ./ COPY *.tgz ./ RUN npm --quiet set progress=false \ && npm install --omit=dev --omit=optional \ && echo "Installed NPM packages:" \ && (npm list --omit=dev --all || true) \ && echo "Node.js version:" \ && node --version \ && echo "NPM version:" \ && npm --version COPY . ./ ENV DISPLAY=:99 CMD xvfb-run -a npm start --silent