printnatura/Dockerfile

45 lines
773 B
Docker
Raw Permalink Normal View History

FROM debian:bookworm-slim
2022-11-04 13:41:36 +00:00
ENV TZ Europe/Madrid
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cups \
curl \
ca-certificates \
sudo \
libcupsimage2 \
nodejs \
npm \
2022-11-04 13:41:36 +00:00
&& rm -rf /var/lib/apt/lists/*
2022-12-15 14:04:36 +00:00
# Cups
RUN useradd admin && usermod -g lpadmin admin
2024-06-04 12:35:50 +00:00
2024-06-04 13:02:13 +00:00
COPY ctzcls-cups_1.1.0-2_amd64.deb /tmp/
RUN chmod a+x /tmp/ctzcls-cups_1.1.0-2_amd64.deb \
&& dpkg -i /tmp/ctzcls-cups_1.1.0-2_amd64.deb
2024-06-04 12:35:50 +00:00
2022-12-15 14:04:36 +00:00
# Printnatura
2022-11-07 12:45:33 +00:00
WORKDIR /printnatura
2022-11-04 13:41:36 +00:00
COPY \
package.json \
package-lock.json \
./
RUN npm install
COPY \
main.js \
print-server.js \
config.yml \
entrypoint.sh \
2023-03-28 05:56:58 +00:00
.npmrc \
2022-11-04 13:41:36 +00:00
./
COPY sql sql
2022-11-07 12:45:33 +00:00
ENTRYPOINT ["/printnatura/entrypoint.sh"]
CMD ["node", "main.js"]