From c70b5f90d11528ae04e7e53ca88645970cebda08 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Fri, 9 Feb 2024 13:52:01 +0100 Subject: [PATCH] fix print --- print/Dockerfile | 6 ++++++ print/docker-compose.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/print/Dockerfile b/print/Dockerfile index b7f7304..26ab63f 100644 --- a/print/Dockerfile +++ b/print/Dockerfile @@ -1,5 +1,9 @@ FROM debian:bookworm + +ENV DEBIAN_FRONTEND noninteractive +ENV TZ "Europe/Berlin" + # Install Packages (basic tools, cups, basic drivers, HP drivers) RUN apt-get update \ && apt-get install -y \ @@ -21,6 +25,8 @@ RUN apt-get update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +EXPOSE 631 + # Add user and disable sudo password checking RUN useradd \ --groups=sudo,lp,lpadmin \ diff --git a/print/docker-compose.yaml b/print/docker-compose.yaml index 14ca900..14273ed 100644 --- a/print/docker-compose.yaml +++ b/print/docker-compose.yaml @@ -6,6 +6,8 @@ services: volumes: - /var/run/dbus:/var/run/dbus - ${VOLUMES_PATH}/print/cups:/etc/cups + - ${VOLUMES_PATH}/print/spool/cups:/var/spool/cups + - ${VOLUMES_PATH}/print/spool/cups-pdf:/var/spool/cups-pdf devices: - /dev/usb/lp0 privileged: true