Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM debian:buster
  2. RUN apt-get update && \
  3. DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yq \
  4. locales \
  5. sudo \
  6. whois \
  7. cups \
  8. printer-driver-all \
  9. foomatic-db-compressed-ppds \
  10. openprinting-ppds \
  11. gutenprint-locales \
  12. && \
  13. apt-get clean && \
  14. rm -rf /var/lib/apt/lists/*
  15. RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen en_US.UTF-8
  16. ENV LANG en_US.UTF-8
  17. ENV LANGUAGE en_US:en
  18. ENV LC_ALL en_US.UTF-8
  19. ARG ADMIN_USER=print
  20. ARG ADMIN_PWD=print
  21. RUN useradd \
  22. --groups=sudo,lp,lpadmin \
  23. --create-home \
  24. --home-dir=/home/${ADMIN_USER} \
  25. --shell=/bin/bash \
  26. --password=$(mkpasswd ${ADMIN_PWD}) \
  27. ${ADMIN_USER} \
  28. && sed -i '/%sudo[[:space:]]/ s/ALL[[:space:]]*$/NOPASSWD:ALL/' /etc/sudoers
  29. COPY ./drivers /tmp/drivers
  30. COPY ./bin /usr/local/bin
  31. RUN install_drivers -d /tmp/drivers && \
  32. rm -rf /tmp/drivers
  33. EXPOSE 631
  34. ENTRYPOINT ["/usr/sbin/cupsd", "-f"]