Namespace
xylplm
Image / Tag
media-saber:beta-arm
Content Digest
sha256:328e52b16100c88ea2430e33900d70e8c489732356ce2c5f1af7078718cf873b
Details
Created

2024-11-18 06:19:18 UTC

Size

448 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2024-11-18T06:18:02Z
  • org.opencontainers.image.description
    media-saber-base
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    e363adb1a9eef6fd70845ac1bfa2b398727e3e96
  • org.opencontainers.image.source
    https://git.nas.neuedu.work/yii/ms.git
  • org.opencontainers.image.title
    media-saber-base
  • org.opencontainers.image.url
    https://git.nas.neuedu.work/yii/ms
  • 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

master

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:bca4290a96390d7a6fc6f2f9929370d06f8dfcacba591c76e3d5c5044e7f420c - 0.71% (3.19 MB)

[#001] sha256:3271878bd42aa15c91b1403355a07f43bfbfb1e55ba1bd1839ff11a1413d0369 - 0.13% (608 KB)

[#002] sha256:4a4681ab8098a53c6947f43f74b9c29af00cb63656c90b11b3a08f26e009ba1f - 2.61% (11.7 MB)

[#003] sha256:b114749d19c3a4e62847f535eb1fc2f6fa162ff34a3488a2d1abd85c729f4000 - 0.0% (241 Bytes)

[#004] sha256:5f3b15a51122e1802cc6fd5589f8263bb3e1a6538359d4eedae1e3a20b557c7b - 0.66% (2.94 MB)

[#005] sha256:f0c170fea6b4d645e6b6fa34c45daf3daf6ee26a1b6d93c23475188f3d29ea72 - 77.52% (347 MB)

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

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

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

[#009] sha256:b40930fe92ac89cba849380f7139623f3e2e215a53703a14e660f8297841490c - 18.36% (82.3 MB)


History
2024-01-26 23:44:47 UTC

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

2024-01-26 23:44:47 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:09:29 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:09:29 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:09:29 UTC (buildkit.dockerfile.v0)

WORKDIR /media-saber

2024-04-14 03:09:30 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:09:30 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/init"]

2024-04-14 03:09:30 UTC (buildkit.dockerfile.v0)

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

2024-11-18 06:18:58 UTC

/bin/sh -c #(nop) ENV MEDIA_SABER_AUTH_EMAIL= MEDIA_SABER_AUTH_SLOGAN= MEDIA_SABER_CONFIG=/config/config.yaml MEDIA_SABER_SITES_CONFIG=/config/sites MEDIA_SABER_VERSION=master

2024-11-18 06:19:03 UTC

/bin/sh -c #(nop) COPY dir:4b74806d2723b562531eb1d4577c793184f814be923ec557069255d9a4cb88c0 in /media-saber

2024-11-18 06:19:16 UTC

/bin/sh -c #(nop) EXPOSE 3000

2024-11-18 06:19:17 UTC

/bin/sh -c #(nop) VOLUME [/config]

2024-11-18 06:19:17 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.created=2024-11-18T06:18:02Z

2024-11-18 06:19:17 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.revision=e363adb1a9eef6fd70845ac1bfa2b398727e3e96

2024-11-18 06:19:18 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.source=https://git.nas.neuedu.work/yii/ms.git

2024-11-18 06:19:18 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.url=https://git.nas.neuedu.work/yii/ms