forked from EvilCult/iptv-m3u-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
21 lines (21 loc) · 780 Bytes
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.7
ADD ./crontask /etc/cron.d/crontask
WORKDIR /srv
RUN pip install -U Flask \
&& apt-get update \
&& apt-get install -y --no-install-recommends cron git wget \
&& apt autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& chmod 0644 /etc/cron.d/crontask \
&& touch /home/boot.sh \
&& echo "#!/bin/sh\n" > /home/boot.sh \
&& echo "service cron start" >> /home/boot.sh \
&& echo "\n" >> /home/boot.sh \
&& echo "/usr/local/bin/python /srv/iptv/python/main.py" >> /home/boot.sh \
&& echo "\n" >> /home/boot.sh \
&& echo "/bin/bash" >> /home/boot.sh \
&& git clone https://github.com/EvilCult/iptv-m3u-maker.git \
&& mv iptv-m3u-maker iptv
WORKDIR /srv/iptv
CMD [ "/bin/bash", "/home/boot.sh" ]