2024-10-25 17:27:47 +00:00
|
|
|
FROM docker.io/alpine:3.20@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
|
|
|
|
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.title="cups"
|
|
|
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/cups"
|
|
|
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/cups"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/cups"
|
|
|
|
|
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
ARG TARGETVARIANT
|
|
|
|
|
|
|
|
ARG CONTAINER_LIBRARY
|
|
|
|
|
|
|
|
# renovate: datasource=repology depName=alpine_edge/cups versioning=loose
|
|
|
|
ENV CUPS_VERSION=2.4.11-r0
|
|
|
|
# renovate: datasource=repology depName=alpine_edge/cups-filters versioning=loose
|
|
|
|
ENV CUPS_FILTERS_VERSION=1.28.17-r6
|
|
|
|
|
|
|
|
RUN apk --update --no-cache add libcap && \
|
|
|
|
apk --update --no-cache add cups=${CUPS_VERSION} cups-filters=${CUPS_FILTERS_VERSION} --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \
|
2024-10-25 18:11:13 +00:00
|
|
|
mkdir -p /run/cups /cups/conf /cups/cache /cups/data /cups/spool/tmp && \
|
|
|
|
cp /etc/cups/*.conf /cups/conf && \
|
|
|
|
cp -r /usr/share/cups/. /cups/data && \
|
2024-10-25 17:27:47 +00:00
|
|
|
setcap 'cap_net_bind_service=+ep' /usr/sbin/cupsd && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
|
|
|
ADD overlay/ /
|
|
|
|
|
2024-10-25 18:18:37 +00:00
|
|
|
RUN chown -R lp:lpadmin && \
|
|
|
|
chown -R root:lp /cups/conf /run/cups /cups/cache /cups/spool
|
2024-10-25 17:27:47 +00:00
|
|
|
|
|
|
|
EXPOSE 631
|
|
|
|
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
|
|
|
CMD []
|