refs #4550 changed OS (ubuntu→debian) and driver
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1317a998fe
commit
c26b1f1ee9
13
Dockerfile
13
Dockerfile
|
@ -1,5 +1,4 @@
|
|||
#FROM debian:bullseye-slim
|
||||
FROM ubuntu:18.04
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
ENV TZ Europe/Madrid
|
||||
|
||||
|
@ -8,7 +7,8 @@ RUN apt-get update \
|
|||
cups \
|
||||
curl \
|
||||
ca-certificates \
|
||||
sudo
|
||||
sudo \
|
||||
libcupsimage2
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - \
|
||||
&& apt install -y nodejs \
|
||||
|
@ -32,10 +32,9 @@ COPY \
|
|||
./
|
||||
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)
|
||||
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
|
||||
|
||||
ENTRYPOINT ["/printnatura/entrypoint.sh"]
|
||||
CMD ["node", "main.js"]
|
Binary file not shown.
Binary file not shown.
|
@ -31,7 +31,7 @@ class PrintServer {
|
|||
await this.poll();
|
||||
}
|
||||
async stop() {
|
||||
await axios.post(`${this.conf.salix}/api/Accounts/logout?access_token=${this.token}`);
|
||||
await axios.post(`${this.conf.salix.url}/api/Accounts/logout?access_token=${this.token}`);
|
||||
await this.end();
|
||||
}
|
||||
async end() {
|
||||
|
|
Loading…
Reference in New Issue