镜像构建历史
# 2024-10-09 22:04:29 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/entrypoint.sh"]
# 2024-10-09 22:04:29 13.15KB 复制新文件或目录到容器中
COPY --chmod=755 ./*.sh / # buildkit
# 2024-10-09 22:04:29 27.77MB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c curl -#LO https://gh.monlor.com/https://github.com/Rik-F5/xiaoya_db/archive/refs/heads/main.zip && unzip main.zip && pip install -r xiaoya_db-main/requirements.txt && mv xiaoya_db-main/solid.py / && rm -rf main.zip xiaoya_db-main # buildkit
# 2024-10-09 22:04:20 551.70MB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get install -y cron locales fonts-wqy-zenhei busybox unzip curl fd-find gzip lsof sqlite3 httpie jq tzdata aria2 p7zip-full && locale-gen C.UTF-8 && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* # buildkit
# 2024-10-09 22:03:42 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-10-09 22:03:42 0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
# 2024-10-09 22:03:42 0.00B 设置工作目录为/media
WORKDIR /media
# 2024-10-09 22:03:42 0.00B 设置环境变量 TZ
ENV TZ=Asia/Shanghai
# 2024-10-09 22:03:42 0.00B 添加元数据标签
LABEL MAINTAINER=me@monlor.com
# 2024-10-01 18:04:25 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-10-01 18:04:25 36.00B 执行命令并创建新的镜像层
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-01 18:04:25 40.00MB 执行命令并创建新的镜像层
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 --with-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/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
# 2024-10-01 18:04:25 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.12.7
# 2024-10-01 18:04:25 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2024-10-01 18:04:25 9.24MB 执行命令并创建新的镜像层
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-10-01 18:04:25 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-10-01 18:04:25 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-09-27 12:29:32 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-09-27 12:29:32 74.78MB
/bin/sh -c #(nop) ADD file:a9a95cfab16803be03e59ade41622ef5061cf90f2d034304fe4ac1ee9ff30389 in /
镜像信息
{
"Id": "sha256:8cc7ab2f2e93ada6e8ba694ed0b2a1bcd42801fc7709e2d1440c4fecd5116545",
"RepoTags": [
"ghcr.io/monlor/xiaoya-metadata:latest",
"ghcr.io/monlor/xiaoya-metadata:v1.2.19",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/monlor/xiaoya-metadata:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/monlor/xiaoya-metadata:v1.2.19"
],
"RepoDigests": [
"ghcr.io/monlor/xiaoya-metadata@sha256:fcbcd7dd3e044830edc147a6ff9cb3f3ccdbf2b46d88df219909492b7b48ca41",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/monlor/xiaoya-metadata@sha256:55a04caf8c0a8aacd13229f108b1fbac8308b2d538711d9805d2d74b0fc8e57f"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-10-09T14:04:29.482142375Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
"PYTHON_VERSION=3.12.7",
"TZ=Asia/Shanghai"
],
"Cmd": null,
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/media",
"Entrypoint": [
"/entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"MAINTAINER": "me@monlor.com"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 703505119,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/3d95c20f7a5b3a49a2f5fef82ef5ad1aad9cba4b163f497b24a3b7e43b261c0a/diff:/var/lib/docker/overlay2/3d3fef3151e7ca9bd21482d1edd0835ddbe6f7a5a53593e962858c6d2cbc41be/diff:/var/lib/docker/overlay2/041edeaf5037ac576cd8aa48cbf51f73498502ce99e5890fdd6201bcbf6b9008/diff:/var/lib/docker/overlay2/db5c69cbca7177de91886cd775ad49fa8fc6abf863892ff5aec1ad08c58cc206/diff:/var/lib/docker/overlay2/154fbdedd80a9df79a8b60bd371ca43635ab73901558872c7f4ae0c2604e294c/diff:/var/lib/docker/overlay2/576ce10ccd6b755bc6c162d08f548da194d3935cc9f3fa2a4f4a90c674ea068e/diff:/var/lib/docker/overlay2/1bccca92078a7af8b31c9945ce2f68029d684347892dd2e49c5a3b836eef3b8c/diff",
"MergedDir": "/var/lib/docker/overlay2/912cab11c96341c486970c1078335d2a0b54413977399f777b7d1a716a589a95/merged",
"UpperDir": "/var/lib/docker/overlay2/912cab11c96341c486970c1078335d2a0b54413977399f777b7d1a716a589a95/diff",
"WorkDir": "/var/lib/docker/overlay2/912cab11c96341c486970c1078335d2a0b54413977399f777b7d1a716a589a95/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
"sha256:eeda4110c82d7d5406808b0bf5956767013cf05c23265bf277fe4ecc14d40a5f",
"sha256:e8b07b00dc32788c5c4fa3a6de9b1b5f8feba9c4bad683d4d2568d544ef52886",
"sha256:543dd62bab84c7a67ee7344dc426977ac8d73f77bc3b525b3c284d280a79439b",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:ec494fc2bb5cdedf0ea4ba88c33e1e9cc36795e8e0f5930060339186d94fbbf2",
"sha256:444f0b86f81ee6a549a5baf1bc9ac0083e74d1158489856737f2ac88eb87f5c0",
"sha256:468120d582be4a97e1a6aba7cf0c7d305cd29494c0f652ba657b610edf54363f"
]
},
"Metadata": {
"LastTagTime": "2024-10-17T14:16:28.90260534+08:00"
}
}