-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (40 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
48 lines (40 loc) · 1.02 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM debian:unstable-slim
# Arguments
ARG TARGETPLATFORM
ARG TARGETARCH
# Environment Variables
ENV DEBIAN_FRONTEND=noninteractive
ENV TIMEZONE="Europe/Warsaw"
ENV USERNAME=username
ENV PASSWORD=password
# Dependencies
RUN apt update -qqy && \
apt upgrade -qqy && \
apt install --no-install-recommends -y \
avahi-utils \
cups \
cups-client \
cups-bsd \
cups-filters \
cups-browsed \
printer-driver-all \
printer-driver-cups-pdf \
printer-driver-gutenprint \
openprinting-ppds \
libcupsimage2 \
libxml2 \
iproute2 && \
rm -rf /var/lib/apt/lists/*
# PPDs
COPY ./ppd/cnijfilter2_6.80-1_${TARGETARCH}.deb /tmp/cnijfilter2.deb
RUN apt install -y /tmp/cnijfilter2.deb
# Backup Default Configuration
RUN cp -rp /etc/cups /etc/cups.bak
# Volume
VOLUME [ "/etc/cups" ]
# Ports
EXPOSE 631
# Entrypoint
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]