forked from ticosax/cups-in-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (19 loc) · 773 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM debian:sid
MAINTAINER Nicolas Delaby "[email protected]"
# Install cups
RUN apt-get update && apt-get install cups cups-pdf whois -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Disbale some cups backend that are unusable within a container
#RUN mv /usr/lib/cups/backend/parallel /usr/lib/cups/backend-available/ &&\
# mv /usr/lib/cups/backend/serial /usr/lib/cups/backend-available/ &&\
# mv /usr/lib/cups/backend/usb /usr/lib/cups/backend-available/
ADD etc-cups /etc/cups
RUN mkdir -p /etc/cups/ssl
VOLUME /etc/cups/
VOLUME /var/log/cups
VOLUME /var/spool/cups
VOLUME /var/cache/cups
ADD etc-pam.d-cups /etc/pam.d/cups
EXPOSE 631
ADD start_cups.sh /root/start_cups.sh
RUN chmod +x /root/start_cups.sh
CMD ["/root/start_cups.sh"]