gamdl-docker (4c6a533c9661bf0367c4c0cb6d713ef07c0c46b1)

Published 2024-12-31 01:21:29 +00:00 by Cronocide in Cronocide/gamdl-docker

Installation

docker pull git.cronocide.net/cronocide/gamdl-docker:4c6a533c9661bf0367c4c0cb6d713ef07c0c46b1
sha256:0618f2c751caeef9dda86e8b67d9bc4a1b88eb507c638e7eec547112e3e2ef30

Image Layers

# debian.sh --arch 'amd64' out/ 'bullseye' '@1734912000'
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase wget ; rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/* # buildkit
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libbluetooth-dev tk-dev uuid-dev ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
ENV PYTHON_VERSION=3.10.16
ENV PYTHON_SHA256=bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1
RUN /bin/sh -c set -eux; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; bin="$(readlink -ve /usr/local/bin/python3)"; dir="$(dirname "$bin")"; mkdir -p "/usr/share/gdb/auto-load/$dir"; cp -vL Tools/gdb/libpython.py "/usr/share/gdb/auto-load/$bin-gdb.py"; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' wheel ; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
ENV PROJ_NAME=gamdl
ENV MP4DECRYPT=Bento4-SDK-1-6-0-640.x86_64-unknown-linux
ENV M3U8DL=N_m3u8DL-RE_Beta_linux-x64_20230628
ENV M3U8DL_URL=https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_linux-x64_20230628.tar.gz
ENV MP4BOX=gpac_2.2.1-rev0-gb34e3851-release-2.2_amd64
ENV MP4BOX_URL=https://download.tsi.telecom-paristech.fr/gpac/release/2.2.1/gpac_2.2.1-rev0-gb34e3851-release-2.2_amd64.deb
RUN /bin/sh -c apt-get update && apt-get install -y ffmpeg libmad0 libglu1 libglu1-mesa libfaad2 liba52-0.7.4 libavcodec58 # buildkit
RUN /bin/sh -c wget "https://www.bok.net/Bento4/binaries/$MP4DECRYPT.zip" -O /bento.zip # buildkit
RUN /bin/sh -c unzip -d / /bento.zip # buildkit
RUN /bin/sh -c mv /$MP4DECRYPT/bin/* /usr/bin/ # buildkit
RUN /bin/sh -c rm -rf /$MP4DECRYPT # buildkit
RUN /bin/sh -c rm /bento.zip # buildkit
RUN /bin/sh -c pip3 install pywidevine pyyaml # buildkit
RUN /bin/sh -c wget "$MP4BOX_URL" # buildkit
RUN /bin/sh -c dpkg --install "$MP4BOX".deb # buildkit
RUN /bin/sh -c pip3 install mutagen # buildkit
RUN /bin/sh -c rm "$MP4BOX".deb # buildkit
RUN /bin/sh -c wget $M3U8DL_URL -O $M3U8DL.tar.gz # buildkit
RUN /bin/sh -c tar -xf $M3U8DL.tar.gz -C / # buildkit
RUN /bin/sh -c rm $M3U8DL.tar.gz # buildkit
RUN /bin/sh -c mv /N_m3u8DL-RE*/N_m3u8DL-RE /bin/N_m3u8DL-RE # buildkit
RUN /bin/sh -c chmod +x /bin/N_m3u8DL-RE # buildkit
RUN /bin/sh -c git clone https://github.com/glomatico/gamdl.git # buildkit
RUN /bin/sh -c cd /gamdl/ && git checkout e76803add1a67fc21feb28d03cf8459ebd885e7a && cd ../ # buildkit
RUN /bin/sh -c pip3 install /gamdl/ # buildkit
ADD ./config.json /root/.gamdl/config.json # buildkit
ADD ./entrypoint.sh / # buildkit
CMD ["/entrypoint.sh"]

Labels

Key Value
net.cronocide.build-info.build-time Tue Dec 31 01:19:00 UTC 2024
net.cronocide.build-info.git-branch (HEAD
net.cronocide.build-info.git-commit 4c6a533c9661bf0367c4c0cb6d713ef07c0c46b1
net.cronocide.build-info.git-repo https://git.cronocide.net/Cronocide/gamdl-docker.git
org.opencontainers.image.source https://git.cronocide.net/cronocide/gamdl-docker
org.opencontainers.image.title gamdl-docker
org.opencontainers.image.url https://git.cronocide.net
org.opencontainers.image.vendor cronocide.net
Details
Container
2024-12-31 01:21:29 +00:00
29
OCI / Docker
linux/amd64
602 MiB
Versions (18) View all