mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-11 15:52:24 +00:00
@@ -1,4 +1,4 @@
|
||||
FROM alpine:3.18
|
||||
FROM alpine:3.19
|
||||
|
||||
# Install the packages we need. Avahi will be included
|
||||
RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/testing\nhttps://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories &&\
|
||||
@@ -19,12 +19,10 @@ RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/testing\nhttps://dl-cdn.
|
||||
inotify-tools \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py3-pip \
|
||||
build-base \
|
||||
wget \
|
||||
rsync \
|
||||
&& pip3 --no-cache-dir install --upgrade pip \
|
||||
&& pip3 install pycups \
|
||||
py3-pycups \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# This will use port 631
|
||||
@@ -44,6 +42,7 @@ CMD ["/root/run_cups.sh"]
|
||||
# Baked-in config file changes
|
||||
RUN sed -i 's/Listen localhost:631/Listen 0.0.0.0:631/' /etc/cups/cupsd.conf && \
|
||||
sed -i 's/Browsing Off/Browsing On/' /etc/cups/cupsd.conf && \
|
||||
sed -i 's/IdleExitTimeout/#IdleExitTimeout/' /etc/cups/cupsd.conf && \
|
||||
sed -i 's/<Location \/>/<Location \/>\n Allow All/' /etc/cups/cupsd.conf && \
|
||||
sed -i 's/<Location \/admin>/<Location \/admin>\n Allow All\n Require user @SYSTEM/' /etc/cups/cupsd.conf && \
|
||||
sed -i 's/<Location \/admin\/conf>/<Location \/admin\/conf>\n Allow All/' /etc/cups/cupsd.conf && \
|
||||
|
||||
@@ -34,6 +34,7 @@ if [ `ls -l /config/cupsd.conf 2>/dev/null | wc -l` -ne 0 ]; then
|
||||
cp /config/cupsd.conf /etc/cups/cupsd.conf
|
||||
fi
|
||||
|
||||
|
||||
/usr/sbin/avahi-daemon --daemonize
|
||||
/root/printer-update.sh &
|
||||
exec /usr/sbin/cupsd -f
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.1.4
|
||||
1.1.5
|
||||
|
||||
Reference in New Issue
Block a user