-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (42 loc) · 1.28 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Set base to Debian jessie
FROM debian:jessie
# install base packages
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /tmp
RUN apt-get update -y && \
apt-get install -y apt-utils && \
apt-get install -y \
ca-certificates \
libpython2.7 \
jq \
tor \
net-tools \
cron \
nano \
mc \
python-apsw \
python-m2crypto \
supervisor \
unzip \
wget \
&& \
mkdir -p /mnt/media/playlists && \
# install acestream-engine
wget -o - http://dl.acestream.org/linux/acestream_3.1.16_debian_8.7_x86_64.tar.gz && \
tar --show-transformed-names --transform='s/acestream_3.1.16_debian_8.7_x86_64/acestream/' -vzxf acestream_3.1.16_debian_8.7_x86_64.tar.gz && \
mv acestream /usr/share && \
rm -rf /tmp/* /etc/tor/torrc
# add services
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD supervisor/supervisord.conf /etc/supervisor/supervisord.conf
ADD ace.hls_parser.sh /mnt/media/playlists/ace.hls_parser.sh
ADD torrc /etc/tor/torrc
RUN chmod +x /mnt/media/playlists/ace.hls_parser.sh
RUN /mnt/media/playlists/ace.hls_parser.sh
ADD start.sh /usr/bin/start.sh
RUN chmod +x /usr/bin/start.sh
RUN rm -rf /tmp/*
EXPOSE 8621 62062 9944 9903 6878
VOLUME /mnt/media/playlists
WORKDIR /
ENTRYPOINT ["/usr/bin/start.sh"]