34 lines
744 B
Docker
34 lines
744 B
Docker
# Base-Image
|
|
FROM ubuntu:18.04
|
|
|
|
# Environment
|
|
ENV CUPS_ADMIN_USER=print
|
|
ENV CUPS_ADMIN_PASSWD=print
|
|
ENV DEBIAN_FRONTEND="noninteractive"
|
|
|
|
# Software installation
|
|
RUN apt-get update && \
|
|
apt-get upgrade --yes && \
|
|
apt-get install --yes \
|
|
sudo \
|
|
cups \
|
|
cups-client \
|
|
cups-bsd \
|
|
cups-filters \
|
|
foomatic-db-compressed-ppds \
|
|
printer-driver-all \
|
|
openprinting-ppds \
|
|
hpijs-ppds \
|
|
hp-ppd \
|
|
hplip && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY install-scripts /tmp/install-scripts
|
|
RUN for i in /tmp/install-scripts/*; do sh $i; done
|
|
|
|
# https://www.cups.org/doc/firewalls.html
|
|
EXPOSE 631
|
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh"] |