forked from thbe/docker-cups
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (39 loc) · 1.15 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (39 loc) · 1.15 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
49
50
51
FROM alpine
#
# BUILD:
# wget https://raw.githubusercontent.com/thbe/docker-cups/master/Dockerfile
# docker build --rm --no-cache -t thbe/cups .
#
# USAGE:
# wget https://raw.githubusercontent.com/thbe/docker-cups/master/start_cups.sh
# ./start_cups.sh
#
# Set metadata
LABEL maintainer="Thomas Bendler <project@bendler-net.de>"
LABEL version="1.3"
LABEL description="Creates an Alpine container serving a CUPS instance accessible through airplay as well"
# Set environment
ENV LANG en_GB.UTF-8
ENV TERM xterm
# Set workdir
WORKDIR /opt/cups
# Install CUPS/AVAHI
RUN apk update --no-cache && apk add --no-cache cups cups-filters avahi inotify-tools
# Install jbigkit
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
jbigkit
# Install filter
COPY Filters/pstoricohddst-gdi /usr/lib/cups/filter
RUN chmod 755 /usr/lib/cups/filter/pstoricohddst-gdi
# Copy configuration files
COPY root /
# Prepare CUPS container
RUN chmod 755 /srv/run.sh
# Expose SMB printer sharing
EXPOSE 137/udp 139/tcp 445/tcp
# Expose IPP printer sharing
EXPOSE 631/tcp
# Expose avahi advertisement
EXPOSE 5353/udp
# Start CUPS instance
CMD ["/srv/run.sh"]