16 lines
602 B
Docker
16 lines
602 B
Docker
FROM debian:12
|
|
|
|
# Install wget and xmlstarlet, an optimized xml parser. Then clear apt cache
|
|
RUN apt update && apt install -y --no-install-recommends bash wget xmlstarlet cron
|
|
|
|
# Copy channel id list to data directory, cleaner script to opt directory
|
|
COPY channel_keep_list.txt /opt/channel_keep_list.txt
|
|
COPY channels_translate.txt /opt/channels_translate.txt
|
|
COPY tmpl.xsl /opt/tmpl.xsl
|
|
COPY xml_cleaner_v3.sh /opt/xml_cleaner.sh
|
|
|
|
# Add the cron job
|
|
RUN echo "0 7 * * * /opt/xml_cleaner.sh" > /etc/cron.d/cleaner-cron-job
|
|
RUN chmod 0644 /etc/cron.d/cleaner-cron-job
|
|
|
|
CMD ["cron", "-f"] |