2023-11-29 08:31:56 UTC
163 MB
7169605F62C751356D054A26A821E680E5FA6305
LANGC.UTF-8
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHON_GET_PIP_SHA2569cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6
PYTHON_GET_PIP_URLhttps://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py
PYTHON_PIP_VERSION23.2.1
PYTHON_VERSION3.12.0
[#000] sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa - 1.99% (3.24 MB)
[#001] sha256:bce421d9dba6e3c8ca2db31af1fcc2a2c26ca969f41b6b24f2b0651a4dbd36c7 - 0.36% (608 KB)
[#002] sha256:48485b7f8a562344f6f712e4e1a2508b82d62f18994730624135f0ba54f1281f - 8.28% (13.5 MB)
[#003] sha256:a179ab9f9239455e63f9fea1c55d9682ecafdae588ef3ede4a4bdad8a49e3945 - 0.0% (230 Bytes)
[#004] sha256:495d2fde3ab886689957d777f37f79c912a57f42365621ef86053de1797b7c6e - 1.57% (2.55 MB)
[#005] sha256:4487349e520e7e76b4512ea11b55a422cdda8cc2a5924928ba0fbe8ea8dc0411 - 63.81% (104 MB)
[#006] sha256:ce85bbe8f888240300bbda6697b53ead8cdac8be56a1e5f92e6d495158093d53 - 8.94% (14.6 MB)
[#007] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#008] sha256:9404e2116611599cdc2f6f7ab07053914ed4d579d6ee38204f79e738d8650aaf - 0.01% (11.2 KB)
[#009] sha256:d8eb1d0af895890df291c4ba625bfc39616fa7588b1f6f962cb4b8a93d689f7b - 0.02% (38.3 KB)
[#010] sha256:56fdbe1e44135342997b52a61967cd900eddfdb85267d5545f38a38d32584951 - 15.02% (24.5 MB)
/bin/sh -c #(nop) ADD file:756183bba9c7f4593c2b216e98e4208b9163c4c962ea0837ef88bd917609d001 in /
2023-09-28 21:19:27 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.12.0
2023-10-21 18:46:15 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
2023-10-21 18:46:15 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
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_PIP_VERSION=23.2.1
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6
2023-10-21 18:46:15 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" ; rm -f get-pip.py; pip --version # buildkit
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2023-11-29 08:31:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache gcc musl-dev python3-dev libffi-dev # buildkit
2023-11-29 08:31:47 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c pip install --no-cache-dir pdm # buildkit
2023-11-29 08:31:47 UTC (buildkit.dockerfile.v0)WORKDIR /srv
2023-11-29 08:31:47 UTC (buildkit.dockerfile.v0)COPY ./utils ./utils # buildkit
2023-11-29 08:31:47 UTC (buildkit.dockerfile.v0)COPY ./pyproject.toml ./pdm.lock ./miuitask.py ./docker_start.sh ./ # buildkit
2023-11-29 08:31:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c pdm install --prod && echo "0 4 * * * cd /srv && pdm run /srv/miuitask.py" > /var/spool/cron/crontabs/root && chmod +x docker_start.sh # buildkit
2023-11-29 08:31:56 UTC (buildkit.dockerfile.v0)VOLUME [/srv/data /srv/logs]
2023-11-29 08:31:56 UTC (buildkit.dockerfile.v0)CMD ["/srv/docker_start.sh"]
2023-11-29 08:34:14 UTC
157 MB
7169605F62C751356D054A26A821E680E5FA6305
LANGC.UTF-8
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHON_GET_PIP_SHA2569cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6
PYTHON_GET_PIP_URLhttps://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py
PYTHON_PIP_VERSION23.2.1
PYTHON_VERSION3.12.0
[#000] sha256:579b34f0a95bb83b3acd6b3249ddc52c3d80f5c84b13c944e9e324feb86dd329 - 2.02% (3.18 MB)
[#001] sha256:352ed61460a111aaef7891660426e3a7b7b0f79c5767cc5d231b761daea57733 - 0.38% (610 KB)
[#002] sha256:46eb1abffaefcba86d0b2ed472d777b2faa67b93cd7c25132a2870c7a730b046 - 8.54% (13.5 MB)
[#003] sha256:5971f95aa83f015b23c6d995a5eae41a3f714f86be974693926df0aa35f4200b - 0.0% (227 Bytes)
[#004] sha256:63bd9088db3c545fa308c0a03eb37f832e5198a8cf3e0d1dbfa7e3f59b1f075a - 1.62% (2.55 MB)
[#005] sha256:9f069a9cf766adfee8a468d9d127be54e7e1fd0f1d90702ab43914568c345648 - 62.11% (97.8 MB)
[#006] sha256:8af79ba927370bdf1f56a6d60553b5d1689c7ee153604143ec943a4c821c04d9 - 9.24% (14.5 MB)
[#007] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#008] sha256:a0c26572fcc842d65afb8deafaf591048865bc9a4caec7d69f30dcfcd81cee0b - 0.01% (11.2 KB)
[#009] sha256:88d1a7fd9dd7cf89c02ea6dff79be75f6d61a5beb730054410d4b1538e257014 - 0.02% (38.3 KB)
[#010] sha256:dcb74aeae9a3fba90f582a4a34d5f0e779c628e7c16735ad4c357d4222faf52e - 16.06% (25.3 MB)
/bin/sh -c #(nop) ADD file:ff3112828967e8004a3264d7ece3f81c88e6a1d44d360b9b5613caab15b41717 in /
2023-09-28 20:39:34 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.12.0
2023-10-21 18:46:15 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
2023-10-21 18:46:15 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
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_PIP_VERSION=23.2.1
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6
2023-10-21 18:46:15 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" ; rm -f get-pip.py; pip --version # buildkit
2023-10-21 18:46:15 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2023-11-29 08:31:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache gcc musl-dev python3-dev libffi-dev # buildkit
2023-11-29 08:32:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c pip install --no-cache-dir pdm # buildkit
2023-11-29 08:32:29 UTC (buildkit.dockerfile.v0)WORKDIR /srv
2023-11-29 08:32:29 UTC (buildkit.dockerfile.v0)COPY ./utils ./utils # buildkit
2023-11-29 08:32:29 UTC (buildkit.dockerfile.v0)COPY ./pyproject.toml ./pdm.lock ./miuitask.py ./docker_start.sh ./ # buildkit
2023-11-29 08:34:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c pdm install --prod && echo "0 4 * * * cd /srv && pdm run /srv/miuitask.py" > /var/spool/cron/crontabs/root && chmod +x docker_start.sh # buildkit
2023-11-29 08:34:14 UTC (buildkit.dockerfile.v0)VOLUME [/srv/data /srv/logs]
2023-11-29 08:34:14 UTC (buildkit.dockerfile.v0)CMD ["/srv/docker_start.sh"]
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.