See prev commit

This commit is contained in:
Nicolas 2025-06-11 16:49:13 -04:00
parent feb262e0ff
commit 7795bd8c59

View File

@ -5,10 +5,15 @@ RUN apt update && apt install -y --no-install-recommends \
bash \ bash \
wget \ wget \
xmlstarlet \ xmlstarlet \
cron \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy channel id list to data directory, cleaner script to opt directory # Copy channel id list to data directory, cleaner script to opt directory
COPY xml_tv_ids.txt /data/ COPY xml_tv_ids.txt /data/
COPY xml_cleaner.sh /opt/ COPY xml_cleaner.sh /opt/
CMD ["bash"] # Add the cron job
RUN echo "0 3 * * * /opt/xml_cleaner.sh" > /etc/cron.d/cleaner-cron-job
RUN chmod 0644 /etc/cron.d/cleaner-cron-job
CMD ["cron", "-f"]