Namespace
xylplm
Image / Tag
media-saber:latest-beta
Content Digest
sha256:9456b6b95f9adc7165b4dce6115eedc295a89b4021174c00df46c9b471880aa2
Details
Created

2024-11-18 03:33:17 UTC

Size

441 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2024-04-14T02:59:24.936Z
  • org.opencontainers.image.description
    media-saber-base
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    0f62dd41351ef0935149271b3d2bebf2ed45cd92
  • org.opencontainers.image.source
    https://github.com/xylplm/media-saber-base
  • org.opencontainers.image.title
    media-saber-base
  • org.opencontainers.image.url
    https://github.com/xylplm/media-saber-base
  • org.opencontainers.image.version
    latest

Environment
GPG_KEY

A035C8C19219BA821ECEA86B64E628F8D684696D

HOME

/ms

LANG

C.UTF-8

MEDIA_SABER_AUTH_EMAIL

MEDIA_SABER_AUTH_SLOGAN

MEDIA_SABER_CONFIG

/config/config.yaml

MEDIA_SABER_SITES_CONFIG

/config/sites

MEDIA_SABER_VERSION

beta

PATH

/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium

PGID

0

PS1

\u@\h:\w $

PUID

0

PYTHON_GET_PIP_SHA256

dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9

PYTHON_GET_PIP_URL

https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py

PYTHON_PIP_VERSION

23.0.1

PYTHON_SETUPTOOLS_VERSION

65.5.1

PYTHON_VERSION

3.10.13

S6_CMD_WAIT_FOR_SERVICES_MAXTIME

0

S6_KILL_GRACETIME

60000

S6_SERVICES_GRACETIME

30000

S6_SYNC_DISKS

1

TERM

xterm

TZ

Asia/Shanghai

UMASK

000

WORKDIR

/media-saber


Layers

[#000] sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 - 0.74% (3.25 MB)

[#001] sha256:c3cdf40b8bda8e4ca4be0f5fa7f1d128907271efcbc72cbfc7c8b0f939ec25ea - 0.13% (605 KB)

[#002] sha256:e364c76f7f9cc89a05dadb79c49384527e89bfad476079d9f86cfeee8fbc4f8b - 2.64% (11.6 MB)

[#003] sha256:00a2c001a0af4c6f1f281a2e431410e9e5b47480033eaea15999bfdc558219a3 - 0.0% (239 Bytes)

[#004] sha256:77b5492a4815804d074ff11a54ae3c5c3bbd6c6e2f9ba5f95f62e1f567f1e7bf - 0.67% (2.94 MB)

[#005] sha256:05b51744c07e378e31dbe851d899c20237f88354477dc7c47184c76e1903408e - 80.94% (357 MB)

[#006] sha256:cb5a2f199e7476584d4a12e272b99ab078424e215a23340b53e2e5de5cf706b3 - 0.0% (101 Bytes)

[#007] sha256:7d0c6cefe9c1c99ff83c95f3477b734172120e4a3cd09663bffd821a02c7cb19 - 0.0% (3.28 KB)

[#008] sha256:2f17e9fc159e18874ff61be3f578816cd5b390b8e499b7534a4f7278fdd7f0bf - 0.0% (1.2 KB)

[#009] sha256:348e2aa010f6fd298f9c76a298168a1606f41750007df32226beb715432b3d48 - 14.89% (65.7 MB)


History
2024-01-27 00:30:48 UTC

/bin/sh -c #(nop) ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in /

2024-01-27 00:30:48 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.10.13

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps gnupg tar xz bluez-dev bzip2-dev dpkg-dev dpkg expat-dev findutils gcc gdbm-dev libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tcl-dev tk tk-dev util-linux-dev xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; 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-system-expat --without-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" python ; make install; 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 '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; python3 --version # buildkit

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; for src in idle3 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

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV PYTHON_PIP_VERSION=23.0.1

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SETUPTOOLS_VERSION=65.5.1

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit

2024-02-03 10:49:13 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

2024-04-14 03:01:06 UTC (buildkit.dockerfile.v0)

ENV S6_SERVICES_GRACETIME=30000 S6_KILL_GRACETIME=60000 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_SYNC_DISKS=1 HOME=/ms TERM=xterm PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium LANG=C.UTF-8 TZ=Asia/Shanghai PS1=\u@\h:\w $ PUID=0 PGID=0 UMASK=000 WORKDIR=/media-saber

2024-04-14 03:01:06 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache --virtual .build-deps libffi-dev gcc musl-dev libxml2-dev libxslt-dev && apk add --no-cache $(echo $(wget --no-check-certificate -qO- https://raw.githubusercontent.com/xylplm/media-saber-base/master/package_list.txt)) && curl https://rclone.org/install.sh | bash && if [ "$(uname -m)" = "x86_64" ]; then ARCH=amd64; elif [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi && curl https://dl.min.io/client/mc/release/linux-${ARCH}/mc --create-dirs -o /usr/bin/mc && chmod +x /usr/bin/mc && pip install --upgrade pip setuptools wheel && pip install cython && pip install -r https://raw.githubusercontent.com/xylplm/media-saber-base/master/requirements.txt && apk del --purge .build-deps && rm -rf /tmp/* /ms/.cache /var/cache/apk/* # buildkit

2024-04-14 03:01:06 UTC (buildkit.dockerfile.v0)

WORKDIR /media-saber

2024-04-14 03:01:06 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c addgroup -S ms -g 911 && adduser -S ms -G ms -h ${HOME} -s /bin/bash -u 911 && python_ver=$(python3 -V | awk '{print $2}') && echo "${WORKDIR}/" > /usr/local/lib/python${python_ver%.*}/site-packages/media-saber.pth && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf && echo "ms ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers # buildkit

2024-04-14 03:01:06 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/init"]

2024-04-14 03:01:06 UTC (buildkit.dockerfile.v0)

COPY --chmod=755 ./rootfs / # buildkit

2024-11-18 03:33:17 UTC (buildkit.dockerfile.v0)

ENV MEDIA_SABER_AUTH_EMAIL= MEDIA_SABER_AUTH_SLOGAN= MEDIA_SABER_CONFIG=/config/config.yaml MEDIA_SABER_SITES_CONFIG=/config/sites MEDIA_SABER_VERSION=beta

2024-11-18 03:33:17 UTC (buildkit.dockerfile.v0)

COPY . /media-saber # buildkit

2024-11-18 03:33:17 UTC (buildkit.dockerfile.v0)

EXPOSE map[3000/tcp:{}]

2024-11-18 03:33:17 UTC (buildkit.dockerfile.v0)

VOLUME [/config]