FROM debian:bookworm-slim ENV TZ Europe/Madrid RUN apt-get update \ && apt-get install -y --no-install-recommends \ cups \ curl \ ca-certificates \ sudo \ libcupsimage2 \ nodejs \ npm \ && rm -rf /var/lib/apt/lists/* # Cups RUN useradd admin && usermod -g lpadmin admin RUN mkdir -p /usr/share/ppds/godex COPY ppds/* /usr/share/ppds/godex # Printnatura WORKDIR /printnatura COPY \ package.json \ package-lock.json \ ./ RUN npm install COPY \ main.js \ print-server.js \ config.yml \ entrypoint.sh \ .npmrc \ ./ COPY sql sql ENTRYPOINT ["/printnatura/entrypoint.sh"] CMD ["node", "main.js"]