-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
26 lines (19 loc) · 960 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM kolonuk/get_iplayer-docker-base
ADD start.sh /root/start.sh
ADD update.sh /root/update.sh
RUN chmod 755 /root/start.sh
RUN chmod 755 /root/update.sh
# Setup crontab
RUN echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" > /root/cron.tab && \
echo "@hourly /root/get_iplayer --refresh > /proc/1/fd/1 2>&1" >> /root/cron.tab && \
echo "@hourly /root/get_iplayer --pvr > /proc/1/fd/1 2>&1" >> /root/cron.tab && \
echo "@daily /root/update.sh > /proc/1/fd/1 2>&1" >> /root/cron.tab && \
crontab /root/cron.tab && \
rm -f /root/cron.tab
VOLUME /root/.get_iplayer
VOLUME /root/output
LABEL issues_get_iplayer="Comments/issues for get_iplayer: https://forums.squarepenguin.co.uk"
LABEL issues_kolonuk/get_iplayer="Comments/issues for this Dockerfile: https://github.com/kolonuk/get_iplayer-docker/issues"
LABEL maintainer="John Wood <john@kolon.co.uk>"
EXPOSE 8181:8181
ENTRYPOINT ["/bin/bash", "/root/start.sh"]