2024-12-12 11:25:10 UTC
253 MB
7169605F62C751356D054A26A821E680E5FA6305
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 - 1.37% (3.46 MB)
[#001] sha256:bd7075f7f3e1a79ada63a385711a2d1612dfb50c303d9ea408ed873bf0088c26 - 0.17% (444 KB)
[#002] sha256:7d54e5997a4f9c108bc9a7b4a1324669b3c07252c9063b9f2c791302595027b6 - 6.01% (15.2 MB)
[#003] sha256:2e760e98e4afb4f520dc44c53b69e936ace069498c23462f174e684d7049734b - 0.0% (255 Bytes)
[#004] sha256:6d0cf00bc1f7f1e98c2b15520689a0b8d2810daeccab42e75bbe3c881343cc2a - 0.0% (163 Bytes)
[#005] sha256:c1c3a4baa8c76380b67ca0723381cafbea6ed05d7c374bdb39e186e20b672987 - 0.0% (252 Bytes)
[#006] sha256:96fe6b89c74505502b7f26b076aced6ccf883296e4e2762aedafd8313613c99d - 92.44% (234 MB)
[#007] sha256:8696f4064bd9d88b8ec1fbf9c6c9ed4e1ffcbbd4664302a62ffcf2600ba88d5e - 0.0% (8.85 KB)
[#008] sha256:d35ea96740f1abff8f612c4a0674b9179ff0602a8ac612283c8bf3faace15406 - 0.0% (11.5 KB)
[#009] sha256:75817f04441f130cd0054bc22da7beee638497fb6d4c95317fb1dde44091cd3e - 0.0% (144 Bytes)
[#010] sha256:124a527a6a06c9f87de647969823c2df41135543edfdd322f82a1459d8c9aa64 - 0.0% (3.63 KB)
[#011] sha256:420a2eab59d8e4e76d357ae7e4c2b854a2aeae42913556051a91ebcf3f50bf40 - 0.0% (3.63 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-11-21 09:34:00 UTC (buildkit.dockerfile.v0)ARG VERSION=1.4.1
2024-11-21 09:34:00 UTC (buildkit.dockerfile.v0)ARG COMMIT=699dbf6fac7d058b4c7a3fa25a440971ffc087fd
2024-11-21 09:34:00 UTC (buildkit.dockerfile.v0)RUN |2 VERSION=1.4.1 COMMIT=699dbf6fac7d058b4c7a3fa25a440971ffc087fd /bin/sh -c echo -e "VERSION=$VERSION\nCOMMIT=$COMMIT" > /version.env # buildkit
2024-11-21 09:34:00 UTC (buildkit.dockerfile.v0)COPY requirements.txt /tmp/requirements.txt # buildkit
2024-11-21 09:34:53 UTC (buildkit.dockerfile.v0)RUN |2 VERSION=1.4.1 COMMIT=699dbf6fac7d058b4c7a3fa25a440971ffc087fd /bin/sh -c apk update && apk add --no-cache --virtual build-deps gcc g++ python3-dev musl-dev pkgconfig && apk add --no-cache curl postgresql postgresql-dev mariadb-dev sqlite-dev && pip install --no-cache-dir --upgrade uvicorn && pip install --no-cache-dir psycopg2==2.9.10 mysqlclient==2.2.6 pysqlite3==0.5.4 && pip install --no-cache-dir -r /tmp/requirements.txt && apk del build-deps # buildkit
2024-11-21 09:34:53 UTC (buildkit.dockerfile.v0)COPY app /app # buildkit
2024-11-21 09:34:53 UTC (buildkit.dockerfile.v0)COPY README.md /README.md # buildkit
2024-11-21 09:34:53 UTC (buildkit.dockerfile.v0)HEALTHCHECK &{["CMD-SHELL" "curl --insecure --fail https://localhost/-/health || exit 1"] "10s" "5s" "30s" "0s" '\x03'}
2024-11-21 09:34:53 UTC (buildkit.dockerfile.v0)CMD ["uvicorn" "main:app" "--host" "0.0.0.0" "--port" "443" "--app-dir" "/app" "--proxy-headers" "--ssl-keyfile" "/app/cert/webserver.key" "--ssl-certfile" "/app/cert/webserver.crt"]
2024-12-12 11:25:10 UTC/bin/sh -c mkdir -p /app/cert
2024-12-12 11:25:10 UTC/bin/sh -c #(nop) COPY multi:6084e3df88d36ad79572acef7f7470d56ad833e19c8b4ede7b38db4d955e6bae in /app/cert/
2024-12-12 11:25:10 UTC/bin/sh -c chmod -R a+rw /app/cert/*
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.