printnatura/Dockerfile

44 lines
830 B
Docker
Raw Normal View History

FROM debian:bullseye-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
2022-11-04 13:41:36 +00:00
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - \
&& apt install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
2022-12-15 14:04:36 +00:00
# Cups
RUN useradd admin && usermod -g lpadmin admin
COPY ctzcls-cups_1.1.0-0_amd64.deb /tmp/
RUN chmod a+x /tmp/ctzcls-cups_1.1.0-0_amd64.deb \
&& dpkg -i /tmp/ctzcls-cups_1.1.0-0_amd64.deb
# 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 \
./
COPY sql sql
2022-11-07 12:45:33 +00:00
ENTRYPOINT ["/printnatura/entrypoint.sh"]
2022-11-04 13:41:36 +00:00
CMD ["node", "main.js"]