printnatura/Dockerfile

41 lines
846 B
Docker
Raw Normal View History

2022-11-04 13:41:36 +00:00
#FROM debian:bullseye-slim
FROM ubuntu:18.04
ENV TZ Europe/Madrid
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cups \
curl \
ca-certificates \
sudo
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - \
&& apt install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
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 cupsd.conf /etc/cups/
COPY \
main.js \
print-server.js \
config.yml \
entrypoint.sh \
./
COPY sql sql
COPY GoDEXdriver-1.1.6.tar.gz /tmp/
RUN (cd /tmp && tar -xf /tmp/GoDEXdriver-1.1.6.tar.gz) \
&& chmod a+x /tmp/GoDEXdriver-1.1.6/install-driver \
&& (cd /tmp/GoDEXdriver-1.1.6 && ./install-driver)
2022-11-07 12:45:33 +00:00
ENTRYPOINT ["/printnatura/entrypoint.sh"]
2022-11-04 13:41:36 +00:00
CMD ["node", "main.js"]