-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
40 lines (30 loc) · 1.03 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM debian:buster-slim
MAINTAINER Jacob Alberty <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
ARG CUPS_VERSION=2.4.2
ARG FILTERS_VERSION=1.28.15
ARG QPDF_VERSION=10.6.3
ENV PREFIX=/usr/local/docker
ENV VOLUME=/config
COPY patches /home/patches
COPY build.sh ./build.sh
COPY fakePkg.sh ${PREFIX}/bin/fakePkg.sh
COPY docker-entrypoint.sh ${PREFIX}/bin/docker-entrypoint.sh
COPY docker-healthcheck.sh ${PREFIX}/bin/docker-healthcheck.sh
COPY drivers ${PREFIX}/share/drivers
COPY functions ${PREFIX}/functions
COPY pre_build /usr/local/docker/pre_build
RUN chmod +x \
${PREFIX}/bin/docker-entrypoint.sh \
${PREFIX}/bin/docker-healthcheck.sh \
${PREFIX}/share/drivers/*.sh \
${PREFIX}/functions \
&& chmod -R +x /usr/local/docker/pre_build
RUN chmod +x ./build.sh ${PREFIX}/bin/fakePkg.sh && \
sync && \
./build.sh && \
rm -f ./build.sh
VOLUME ["/config"]
EXPOSE 631/tcp 631/udp
HEALTHCHECK CMD ${PREFIX}/bin/docker-healthcheck.sh
ENTRYPOINT ${PREFIX}/bin/docker-entrypoint.sh /usr/sbin/cupsd -f