Namespace
mcdreforged
Image / Tag
mcdreforged-temurin:2.13.1-py3.11-slim
Content Digest
sha256:b3279a0b10ef0fbe960e8cde5ceeae8d747667207e289c778c640d05892d1f92
Details
Created

2024-07-16 18:25:09 UTC

Size

269 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2024-07-16T18:24:53.123Z
  • org.opencontainers.image.description
    Official docker images for MCDReforged
  • org.opencontainers.image.licenses
    GPL-3.0
  • org.opencontainers.image.revision
    a77c0a1787fcb070de8622f293d65c41be973262
  • org.opencontainers.image.source
    https://github.com/MCDReforged/docker
  • org.opencontainers.image.title
    docker
  • org.opencontainers.image.url
    https://github.com/MCDReforged/docker
  • org.opencontainers.image.version
    2.13.1-py3.11-slim

Environment
GPG_KEY

A035C8C19219BA821ECEA86B64E628F8D684696D

LANG

C.UTF-8

PATH

/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PYTHON_GET_PIP_SHA256

ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7

PYTHON_GET_PIP_URL

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

PYTHON_PIP_VERSION

24.0

PYTHON_SETUPTOOLS_VERSION

65.5.1

PYTHON_VERSION

3.11.9


Layers

[#000] sha256:f11c1adaa26e078479ccdd45312ea3b88476441b91be0ec898a7e07bfd05badc - 10.33% (27.8 MB)

[#001] sha256:4ad0c7422f5c57f6ad7cfc40ac51902b083ab999980546acc0b71b4cbc7980ca - 1.24% (3.35 MB)

[#002] sha256:f2bf536a1e4f91a97ae0ac1e23dded074d073a5785211ff9acedee8766601287 - 4.56% (12.3 MB)

[#003] sha256:3bdbfec22900c781414625092df5d4a57000133308b3392062e2080c37c27d5b - 0.0% (233 Bytes)

[#004] sha256:83396b6ad4ccd49973244f1cd4f4e6b4c47a0c0b9672cbf789c4ed40b5bab2e6 - 1.14% (3.06 MB)

[#005] sha256:492de5c89f266880105e51cdbc71d914948739ca6e7cd4bd2876832d9e99d336 - 3.78% (10.2 MB)

[#006] sha256:98a423cc048ec26d72c9893eb4c73c83a4cd3964fb7517a17c48ba2ab54b92c0 - 0.0% (668 Bytes)

[#007] sha256:4ea9fa96bb91c4fbb4c42b75bbfb393719905b239060e1f29b8c08b02d0a5609 - 0.0% (94 Bytes)

[#008] sha256:ad3ac6f2732c835a579785dc8a7bbab10c7392dd664c7d0e73b87b781c9711c8 - 78.94% (212 MB)


History
2024-07-02 01:25:02 UTC

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

2024-07-02 01:25:02 UTC

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

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

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

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.11.9

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-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="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; 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 '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; python3 --version # buildkit

2024-07-07 22:31:37 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-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

ENV PYTHON_PIP_VERSION=24.0

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SETUPTOOLS_VERSION=65.5.1

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

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

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_SHA256=ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7

2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; 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-07-07 22:31:37 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

2024-07-16 18:20:17 UTC (buildkit.dockerfile.v0)

ARG MCDR_VERSION_REQUIREMENT=2.13.1

2024-07-16 18:20:17 UTC (buildkit.dockerfile.v0)

ARG PYPI_INDEX=https://pypi.org/simple

2024-07-16 18:20:17 UTC (buildkit.dockerfile.v0)

RUN |2 MCDR_VERSION_REQUIREMENT=2.13.1 PYPI_INDEX=https://pypi.org/simple /bin/sh -c set -eux export PIP_ROOT_USER_ACTION=ignore python3 -m pip install -U pip if [ "$MCDR_VERSION_REQUIREMENT" = "latest" ]; then pip3 install mcdreforged else pip3 install "mcdreforged==${MCDR_VERSION_REQUIREMENT}" -i "$PYPI_INDEX" --extra-index-url https://pypi.org/simple fi pip3 cache purge && rm -rf ~/.cache/ # buildkit

2024-07-16 18:20:17 UTC (buildkit.dockerfile.v0)

RUN |2 MCDR_VERSION_REQUIREMENT=2.13.1 PYPI_INDEX=https://pypi.org/simple /bin/sh -c set -eux mkdir -p "$(python3 -m site --user-site)" cat <<EOF > /etc/pip.conf [global] user = true EOF cat <<EOF >> ~/.bashrc # Add Python user bin to PATH export PATH="\$PATH:$(python3 -m site --user-base)/bin" EOF # buildkit

2024-07-16 18:20:17 UTC (buildkit.dockerfile.v0)

WORKDIR /mcdr

2024-07-16 18:20:17 UTC (buildkit.dockerfile.v0)

CMD ["python3" "-m" "mcdreforged" "start" "--auto-init"]

2024-07-16 18:25:09 UTC (buildkit.dockerfile.v0)

ARG JAVA=21

2024-07-16 18:25:09 UTC (buildkit.dockerfile.v0)

RUN |1 JAVA=21 /bin/sh -c set -eux export DEBIAN_FRONTEND="noninteractive" apt-get update apt-get install -y gnupg ca-certificates curl curl -so- https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor -o /etc/apt/trusted.gpg.d/adoptium.gpg echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list apt-get update # The temurin source is currently very unstable, add more retries for it # https://github.com/adoptium/adoptium-support/issues/554 # https://github.com/adoptium/installer/issues/766 set +e wait_times="1 3 5 5 5 5 5 5 5" attempts=$(echo "$wait_times" | awk '{print NF}') # 9 attempts for attempt in $(seq 1 $attempts); do if apt-get install -y "temurin-${JAVA}-jdk"; then break fi if [ "$attempt" != "$attempts" ]; then wait_time=$(echo "$wait_times" | cut -d ' ' -f $attempt) echo "Install attempt #$attempt failed. Waiting ${wait_time} minutes for another attempt..." sleep $((wait_time * 60)) else echo "All $attempts attempts failed" exit 1 fi done set -e java -version javac -version rm -rf /var/lib/apt/lists/* # buildkit

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete