printnatura/Dockerfile

44 lines
702 B
Docker
Raw 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
RUN mkdir -p /usr/share/ppds/godex
COPY ppds/* /usr/share/ppds/godex
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"]