mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-13 20:22:17 +00:00
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.18
|
FROM alpine:3.19
|
||||||
|
|
||||||
# Install the packages we need. Avahi will be included
|
# 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 &&\
|
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 \
|
inotify-tools \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
py3-pip \
|
|
||||||
build-base \
|
build-base \
|
||||||
wget \
|
wget \
|
||||||
rsync \
|
rsync \
|
||||||
&& pip3 --no-cache-dir install --upgrade pip \
|
py3-pycups \
|
||||||
&& pip3 install pycups \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# This will use port 631
|
# This will use port 631
|
||||||
@@ -44,6 +42,7 @@ CMD ["/root/run_cups.sh"]
|
|||||||
# Baked-in config file changes
|
# Baked-in config file changes
|
||||||
RUN sed -i 's/Listen localhost:631/Listen 0.0.0.0:631/' /etc/cups/cupsd.conf && \
|
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/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 \/>/<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>/<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 && \
|
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
|
cp /config/cupsd.conf /etc/cups/cupsd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
/usr/sbin/avahi-daemon --daemonize
|
/usr/sbin/avahi-daemon --daemonize
|
||||||
/root/printer-update.sh &
|
/root/printer-update.sh &
|
||||||
exec /usr/sbin/cupsd -f
|
exec /usr/sbin/cupsd -f
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.1.4
|
1.1.5
|
||||||
|
|||||||
Reference in New Issue
Block a user