See prev commit
This commit is contained in:
parent
feb262e0ff
commit
7795bd8c59
|
@ -5,10 +5,15 @@ RUN apt update && apt install -y --no-install-recommends \
|
|||
bash \
|
||||
wget \
|
||||
xmlstarlet \
|
||||
cron \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy channel id list to data directory, cleaner script to opt directory
|
||||
COPY xml_tv_ids.txt /data/
|
||||
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"]
|
Loading…
Reference in New Issue
Block a user