|
1 |
| -# syntax=docker/dockerfile:experimental |
2 |
| -FROM ubuntu:bionic |
3 |
| - |
4 |
| -# Install system packages |
5 |
| -RUN set -ex && \ |
6 |
| - apt-get update && \ |
7 |
| - apt-get install -yq --no-install-recommends \ |
8 |
| - ca-certificates \ |
9 |
| - python2.7 \ |
10 |
| - libpython2.7 \ |
11 |
| - net-tools \ |
12 |
| - python-setuptools \ |
13 |
| - python-m2crypto \ |
14 |
| - python-apsw \ |
15 |
| - python-lxml \ |
16 |
| - wget && \ |
17 |
| - apt-get clean && \ |
18 |
| - rm -rf /var/lib/apt/lists/* /var/cache/* |
19 |
| - |
20 |
| -# Install Ace Stream |
21 |
| -# https://wiki.acestream.media/Download#Linux |
22 |
| -RUN mkdir -p /opt/acestream && \ |
23 |
| - wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.49_ubuntu_18.04_x86_64.tar.gz" && \ |
24 |
| - echo "d2ed7bdc38f6a47c05da730f7f6f600d48385a7455d922a2688f7112202ee19e acestream.tgz" | sha256sum --check && \ |
25 |
| - tar --extract --gzip --directory /opt/acestream --file acestream.tgz && \ |
26 |
| - rm -rf acestream.tgz && \ |
27 |
| - /opt/acestream/start-engine --version |
28 |
| - |
29 |
| -# Acestream 3.1.49 install is missing library files, |
30 |
| -# but we can grab these from a previous release. |
31 |
| -# http://oldforum.acestream.media/index.php?topic=12448.msg26872 |
32 |
| -RUN wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz" && \ |
33 |
| - echo "452bccb8ae8b5ff4497bbb796081dcf3fec2b699ba9ce704107556a3d6ad2ad7 acestream.tgz" | sha256sum --check && \ |
34 |
| - tar --extract --gzip --strip-components 1 --directory /tmp --file acestream.tgz && \ |
35 |
| - cp /tmp/lib/acestreamengine/py*.so /opt/acestream/lib/acestreamengine/ && \ |
36 |
| - cp /tmp/lib/*.so* /usr/lib/x86_64-linux-gnu/ && \ |
37 |
| - rm -rf tmp/* acestream.tgz |
| 1 | +# syntax=docker/dockerfile:1 |
| 2 | +FROM --platform=linux/amd64 ubuntu:focal |
| 3 | + |
| 4 | +ENV LC_ALL="C.UTF-8" \ |
| 5 | + LANG="C.UTF-8" \ |
| 6 | + DOWNLOAD_URL="https://download.acestream.media/linux/acestream_3.2.3_ubuntu_18.04_x86_64_py3.8.tar.gz" \ |
| 7 | + CHECKSUM="bf45376f1f28aaff7d9849ff991bf34a6b9a65542460a2344a8826126c33727d" |
| 8 | + |
| 9 | +# Install system packages. |
| 10 | +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked\ |
| 11 | + --mount=type=cache,target=/var/lib/apt,sharing=locked\ |
| 12 | + --mount=type=tmpfs,target=/tmp\ |
| 13 | + set -ex;\ |
| 14 | + apt-get update;\ |
| 15 | + apt-get install -yq --no-install-recommends ca-certificates python3.8 libpython3.8 python3-pip wget;\ |
| 16 | + mkdir -p /opt/acestream;\ |
| 17 | + wget --no-verbose --output-document /opt/acestream/acestream.tgz $DOWNLOAD_URL;\ |
| 18 | + echo "$CHECKSUM /opt/acestream/acestream.tgz" | sha256sum --check;\ |
| 19 | + tar --extract --gzip --directory /opt/acestream --file /opt/acestream/acestream.tgz;\ |
| 20 | + rm /opt/acestream/acestream.tgz;\ |
| 21 | + python3 -m pip install -r /opt/acestream/requirements.txt;\ |
| 22 | + /opt/acestream/start-engine --version; |
38 | 23 |
|
39 | 24 | # Overwrite disfunctional Ace Stream web player with a working videojs player,
|
40 | 25 | # Access at http://127.0.0.1:6878/webui/player/<acestream id>
|
41 | 26 | COPY player.html /opt/acestream/data/webui/html/player.html
|
42 |
| - |
43 |
| -# Prep dir |
44 |
| -RUN mkdir /acelink |
45 |
| - |
46 | 27 | COPY acestream.conf /opt/acestream/acestream.conf
|
47 |
| -ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"] |
48 | 28 |
|
49 |
| -HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null' |
| 29 | +# Prep dir serving m3u8 files. |
| 30 | +RUN mkdir /acelink |
50 | 31 |
|
51 | 32 | EXPOSE 6878
|
52 | 33 | EXPOSE 8621
|
| 34 | + |
| 35 | +ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"] |
| 36 | +HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null' |
0 commit comments