2024-12-08 08:17:24 UTC
31.2 MB
demisto/python3:3.12.7.117934
GPG_KEY7169605F62C751356D054A26A821E680E5FA6305
LANGC.UTF-8
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHON_SHA25624887b92e2afd4a2ac602419ad4b596372f67ac9b077190f459aba390faf5550
PYTHON_VERSION3.12.7
[#000] sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d9217b77e1087f - 11.07% (3.46 MB)
[#001] sha256:bd7075f7f3e1a79ada63a385711a2d1612dfb50c303d9ea408ed873bf0088c26 - 1.39% (444 KB)
[#002] sha256:7d54e5997a4f9c108bc9a7b4a1324669b3c07252c9063b9f2c791302595027b6 - 48.65% (15.2 MB)
[#003] sha256:2e760e98e4afb4f520dc44c53b69e936ace069498c23462f174e684d7049734b - 0.0% (255 Bytes)
[#004] sha256:33c2ccef170321c01c27357f389dec1133b1fe6b85d4c4bda2140a59bd785b09 - 1.04% (333 KB)
[#005] sha256:ccb435b1d28eccdec3652139c92d7cdd1c0f02fac30f84580d56958fad68c362 - 0.0% (330 Bytes)
[#006] sha256:cb332879234ed1810bcfb51121c4a663ae6b91414ff36393cbdd36d3655f9b86 - 0.0% (178 Bytes)
[#007] sha256:fb907eedbaf0de0ff70555fefb3dd43f69c91b49512b1bc1300d4c6c443b09c4 - 0.26% (83.7 KB)
[#008] sha256:0c5bf3b0a3db55f8e2447d1dc356627a4ca5057c1856064219aa16ea85d1db27 - 37.56% (11.7 MB)
[#009] sha256:79eb77c71c4932ac9c63bbdf14458d7a69174c362487fbc73972de4c4cf21da4 - 0.0% (964 Bytes)
[#010] sha256:c022e4103d9401729f0d04ad1976273684ff9cc74e43ffc0d619579e756df162 - 0.01% (4.77 KB)
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit
2024-09-06 12:05:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.12.7
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)ENV PYTHON_SHA256=24887b92e2afd4a2ac602419ad4b596372f67ac9b077190f459aba390faf5550
2024-10-18 23:23:40 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 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"; 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-option-checking=fatal --enable-shared --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; 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 '{}' + ; 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; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
2024-10-18 23:23:40 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
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2024-12-08 08:17:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk --update --no-cache upgrade # buildkit
2024-12-08 08:17:15 UTC (buildkit.dockerfile.v0)COPY requirements.txt . # buildkit
2024-12-08 08:17:15 UTC (buildkit.dockerfile.v0)COPY localtime /etc/localtime # buildkit
2024-12-08 08:17:16 UTC (buildkit.dockerfile.v0)COPY public_list.dat /var/public_list.dat # buildkit
2024-12-08 08:17:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk --update add --no-cache --virtual .build-dependencies python3-dev build-base wget && pip install --no-cache-dir -r requirements.txt && apk del .build-dependencies && pip install --upgrade setuptools # buildkit
2024-12-08 08:17:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c addgroup -g 4000 demisto && adduser -u 4000 -G demisto -D demisto -s /bin/sh # buildkit
2024-12-08 08:17:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c cp /etc/ssl/openssl.cnf /etc/ssl/openssl.cnf.org && echo -e 'ssl_conf = ssl_sect\n[ssl_sect]\nsystem_default = system_default_sect\n\n[system_default_sect]\nOptions = UnsafeLegacyRenegotiation\n' > /tmp/ssl.cnf && sed -i '/providers = provider_sect/r /tmp/ssl.cnf' /etc/ssl/openssl.cnf && rm /tmp/ssl.cnf && grep -C 10 'Options = UnsafeLegacyRenegotiation' /etc/ssl/openssl.cnf # buildkit
2024-12-08 08:17:24 UTC (buildkit.dockerfile.v0)ENV DOCKER_IMAGE=demisto/python3:1.0.0.117934
2024-12-08 08:17:24 UTC (buildkit.dockerfile.v0)ENV DOCKER_IMAGE=demisto/python3:3.12.7.117934
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.