2025-07-25 04:12:31 UTC
167 MB
7169605F62C751356D054A26A821E680E5FA6305
HTTPS_PROXY HTTP_PROXY LANGC.UTF-8
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHON_SHA256c30bb24b7f1e9a19b11b55a546434f74e739bb4c271a3e3a80ff4380d49f7adb
PYTHON_VERSION3.12.11
TZAsia/Shanghai
[#000] sha256:59e22667830bf04fb35e15ed9c70023e9d121719bb87f0db7f3159ee7c7e0b8d - 16.15% (26.9 MB)
[#001] sha256:4c665aba06d1c52829be84ca62e1030e27b8a3aa0f922666cbe74d24234ff227 - 2.01% (3.35 MB)
[#002] sha256:e3586b415667d044c3e5c7c91023d29d7db667b73a8082068a1b7f36c1962c34 - 7.82% (13 MB)
[#003] sha256:f5cc5422ebcbbf01f9cd227d36de9dd7e133e1fc6d852f3b0c65260ab58f99f3 - 0.0% (250 Bytes)
[#004] sha256:77b6bd02e0e85ce7588f9fd4beb67e7d9620cf07460276c925d9939310c8295f - 0.0% (191 Bytes)
[#005] sha256:3e5e569ae7e543b40d8ccada93554a6ccc9acb6c74a55b423f7a3895aa4989cd - 0.0% (92 Bytes)
[#006] sha256:7514bb64b65ad2d6924367a5952c6295766d0760120ff974863e505467320c30 - 0.0% (220 Bytes)
[#007] sha256:baee3cd65261f293bd4fb229274b884ef3fe7e519463697b3d0f612a13e77ba3 - 71.47% (119 MB)
[#008] sha256:9eca592c6a33c50eae6424af975278ec32dca69e172eb7edfa7a379ba2161489 - 2.54% (4.24 MB)
# debian.sh --arch 'amd64' out/ 'bookworm' '@1753056000'
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2025-06-04 00:40:01 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
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.12.11
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)ENV PYTHON_SHA256=c30bb24b7f1e9a19b11b55a546434f74e739bb4c271a3e3a80ff4380d49f7adb
2025-06-04 00:40:01 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 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"; 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 $(test "$gnuArch" != 'riscv64-linux-musl' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; 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; 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/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)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
2025-06-04 00:40:01 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)ARG http_proxy
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)ARG https_proxy
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)ENV HTTP_PROXY=
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)ENV HTTPS_PROXY=
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)ENV TZ=Asia/Shanghai
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)RUN |2 http_proxy= https_proxy= /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)WORKDIR /app
2025-07-25 04:04:26 UTC (buildkit.dockerfile.v0)COPY requirements.txt . # buildkit
2025-07-25 04:05:15 UTC (buildkit.dockerfile.v0)RUN |2 http_proxy= https_proxy= /bin/sh -c pip install --no-cache-dir -r requirements.txt # buildkit
2025-07-25 04:12:31 UTC (buildkit.dockerfile.v0)COPY . . # buildkit
2025-07-25 04:12:31 UTC (buildkit.dockerfile.v0)CMD ["python" "start_scheduler.py"]
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.