-
Notifications
You must be signed in to change notification settings - Fork 50
/
Dockerfile
36 lines (30 loc) · 1.54 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
# syntax=docker/dockerfile:1
FROM --platform=linux/amd64 ubuntu:focal
ENV LC_ALL="C.UTF-8" \
LANG="C.UTF-8" \
DOWNLOAD_URL="https://download.acestream.media/linux/acestream_3.2.3_ubuntu_18.04_x86_64_py3.8.tar.gz" \
CHECKSUM="bf45376f1f28aaff7d9849ff991bf34a6b9a65542460a2344a8826126c33727d"
# Install system packages.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked\
--mount=type=cache,target=/var/lib/apt,sharing=locked\
--mount=type=tmpfs,target=/tmp\
set -ex;\
apt-get update;\
apt-get install -yq --no-install-recommends ca-certificates python3.8 libpython3.8 python3-pip wget;\
mkdir -p /opt/acestream;\
wget --no-verbose --output-document /opt/acestream/acestream.tgz $DOWNLOAD_URL;\
echo "$CHECKSUM /opt/acestream/acestream.tgz" | sha256sum --check;\
tar --extract --gzip --directory /opt/acestream --file /opt/acestream/acestream.tgz;\
rm /opt/acestream/acestream.tgz;\
python3 -m pip install -r /opt/acestream/requirements.txt;\
/opt/acestream/start-engine --version;
# Overwrite disfunctional Ace Stream web player with a working videojs player,
# Access at http://127.0.0.1:6878/webui/player/<acestream id>
COPY player.html /opt/acestream/data/webui/html/player.html
COPY acestream.conf /opt/acestream/acestream.conf
# Prep dir serving m3u8 files.
RUN mkdir /acelink
EXPOSE 6878
EXPOSE 8621
ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"]
HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null'