-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (58 loc) · 2.4 KB
/
Copy pathDockerfile
File metadata and controls
69 lines (58 loc) · 2.4 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# syntax=docker/dockerfile:1@sha256:ecfaec9ed6d810b56388c508f4121597bfbba70d41a6dfeee4d8cad5f295fc32
FROM docker.io/library/python:3.10-slim-bookworm@sha256:7ed92b32353e8d8bd865b5ba811e0315d3999c3b57b1c2df2b504a359d4a1707
LABEL \
maintainer="Martin Bjeldbak Madsen <me@martinbjeldbak.com>" \
org.opencontainers.image.title="acestream-http-proxy" \
org.opencontainers.image.description="Stream AceStream sources without needing to install AceStream player" \
org.opencontainers.image.authors="Martin Bjeldbak Madsen <me@martinbjeldbak.com>" \
org.opencontainers.image.url="https://github.com/martinbjeldbak/acestream-http-proxy" \
org.opencontainers.image.documentation="https://github.com/martinbjeldbak/acestream-http-proxy#readme" \
org.opencontainers.image.vendor="https://martinbjeldbak.com" \
org.opencontainers.image.licenses="MIT"
ENV DEBIAN_FRONTEND="noninteractive" \
CRYPTOGRAPHY_DONT_BUILD_RUST=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_ROOT_USER_ACTION=ignore \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_NO_CACHE=true \
UV_SYSTEM_PYTHON=true \
PYTHON_EGG_CACHE=/.cache
ENV VERSION="3.2.11_ubuntu_22.04_x86_64_py3.10" \
ALLOW_REMOTE_ACCESS="no" \
EXTRA_FLAGS=''
USER root
WORKDIR /app
# hadolint ignore=DL4006,DL3008,DL3013
RUN \
apt-get update \
&& \
apt-get install --no-install-recommends --no-install-suggests -y \
bash \
ca-certificates \
catatonit \
curl \
nano \
libgirepository1.0-dev \
&& groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid 1000 -m appuser \
&& mkdir -p /app \
&& mkdir -p /.cache \
&& mkdir -p /home/appuser/.ACEStream/cache \
&& curl -fsSL "https://download.acestream.media/linux/acestream_${VERSION}.tar.gz" \
| tar xzf - -C /app \
&& pip install uv \
&& uv pip install --requirement /app/requirements.txt \
&& chown -R appuser:appuser /.cache /app /home/appuser/.ACEStream && chmod -R 755 /app \
&& pip uninstall --yes uv \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/
COPY . /
USER appuser
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]
EXPOSE 6878/tcp
VOLUME ["/home/appuser/.ACEStream"]