镜像构建历史
# 2025-02-13 13:05:05 0.00B 设置默认要执行的命令
CMD ["node"]
# 2025-02-13 13:05:05 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2025-02-13 13:05:05 388.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2025-02-13 13:05:05 7.24MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apt-mark auto '.*' > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print 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 && yarn --version && rm -rf /tmp/* # buildkit
# 2025-02-13 13:05:05 0.00B 设置环境变量 YARN_VERSION
ENV YARN_VERSION=1.22.22
# 2025-02-13 13:05:05 140.98MB 执行命令并创建新的镜像层
RUN /bin/sh -c ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64' OPENSSL_ARCH='linux-x86_64';; ppc64el) ARCH='ppc64le' OPENSSL_ARCH='linux-ppc64le';; s390x) ARCH='s390x' OPENSSL_ARCH='linux*-s390x';; arm64) ARCH='arm64' OPENSSL_ARCH='linux-aarch64';; armhf) ARCH='armv7l' OPENSSL_ARCH='linux-armv4';; i386) ARCH='x86' OPENSSL_ARCH='linux-elf';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in C0D6248439F1D5604AAFFB4021D900FFDB233756 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apt-mark auto '.*' > /dev/null && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print 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 && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version # buildkit
# 2025-02-13 13:05:05 0.00B 设置环境变量 NODE_VERSION
ENV NODE_VERSION=22.14.0
# 2025-02-13 13:05:05 332.06KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit
# 2025-02-13 13:05:05 80.66MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1742169600'
镜像信息
{
"Id": "sha256:2a82113f12ebb07a02ae70cfec8a5a506600bd77a6b3a02e4db9a5964ccc78cb",
"RepoTags": [
"node:22.14.0-bullseye-slim",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/node:22.14.0-bullseye-slim"
],
"RepoDigests": [
"node@sha256:d69b7c7ea65e223e1837a03784c6caa987e50bd2f1fcc174156554adfbe7ca6e",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/node@sha256:144160ddb375fa17d57605530823126bd75de3552aeca44df01ffa8808bd701f"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-02-13T05:05:05Z",
"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/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NODE_VERSION=22.14.0",
"YARN_VERSION=1.22.22"
],
"Cmd": [
"node"
],
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 229205153,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/422add3c9219e237a819b389114aebfcaf04174c91db80700926faa7f009bf36/diff:/var/lib/docker/overlay2/69ca379a4794bf596c31ebf904f15fe202b0f946bc4f4fd2333954268d4dd1c5/diff:/var/lib/docker/overlay2/dffb80fd08da8fe49cb1baca5e49dd926af1a236c0bd557b6cba89abd74f94d4/diff:/var/lib/docker/overlay2/8096870f745fb2df5735fd860f1ff12f62fba5d7c7bc84bdc364865710428254/diff",
"MergedDir": "/var/lib/docker/overlay2/4d1be0c44a3b71cb2dcb0482828aec2459aea6958791b6f5b56c50cd0b6ee274/merged",
"UpperDir": "/var/lib/docker/overlay2/4d1be0c44a3b71cb2dcb0482828aec2459aea6958791b6f5b56c50cd0b6ee274/diff",
"WorkDir": "/var/lib/docker/overlay2/4d1be0c44a3b71cb2dcb0482828aec2459aea6958791b6f5b56c50cd0b6ee274/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d215e887b4c2504dbfdf905627443999eb9b1bd29109ac636f9a534ff8bc9865",
"sha256:97ba15b35facbf7e798122fa3d1e2ff9ee045d23d753093f1fc7b0526d4306a1",
"sha256:3c9f856b48afc5f7f17df6bd5f50bae180009336e15cf94f69668d1a9a6435c1",
"sha256:73d3e6508eb2539d3102a1294588122c1dd7d7c7ba4be3188c742786e01a89f0",
"sha256:e9d7537536f4065f27975aeb175278ffb968375358d5ef5bf34a7a51e5beea68"
]
},
"Metadata": {
"LastTagTime": "2025-04-03T10:38:45.236725539+08:00"
}
}