Print server via cups
This commit is contained in:
parent
85d6931593
commit
c3d87fcfba
4 changed files with 205 additions and 1 deletions
40
print/Dockerfile
Normal file
40
print/Dockerfile
Normal file
|
@ -0,0 +1,40 @@
|
|||
ARG MAINTAINER
|
||||
FROM debian:bullseye
|
||||
MAINTAINER $MAINTAINER
|
||||
|
||||
# Install Packages (basic tools, cups, basic drivers, HP drivers)
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
sudo \
|
||||
whois \
|
||||
usbutils \
|
||||
cups \
|
||||
cups-client \
|
||||
cups-bsd \
|
||||
cups-filters \
|
||||
foomatic-db-compressed-ppds \
|
||||
printer-driver-all \
|
||||
openprinting-ppds \
|
||||
hpijs-ppds \
|
||||
hp-ppd \
|
||||
hplip \
|
||||
smbclient \
|
||||
printer-driver-cups-pdf \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Add user and disable sudo password checking
|
||||
RUN useradd \
|
||||
--groups=sudo,lp,lpadmin \
|
||||
--create-home \
|
||||
--home-dir=/home/print \
|
||||
--shell=/bin/bash \
|
||||
--password=$(mkpasswd print) \
|
||||
print \
|
||||
&& sed -i '/%sudo[[:space:]]/ s/ALL[[:space:]]*$/NOPASSWD:ALL/' /etc/sudoers
|
||||
|
||||
# Copy the default configuration file
|
||||
COPY --chown=root:lp cupsd.conf /etc/cups/cupsd.conf
|
||||
|
||||
# Default shell
|
||||
CMD ["/usr/sbin/cupsd", "-f"]
|
Loading…
Add table
Add a link
Reference in a new issue