fix print
This commit is contained in:
parent
d469ef3f68
commit
c70b5f90d1
2 changed files with 8 additions and 0 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue