2019-05-26 19:16:19 +00:00
|
|
|
# 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/*
|
|
|
|
|
2019-05-27 18:47:15 +00:00
|
|
|
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
|
|
|
|
|
2019-05-26 19:16:19 +00:00
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh"]
|