镜像构建历史
# 2024-11-27 02:42:08 0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
# 2024-11-27 02:42:08 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2024-11-27 02:42:08 0.00B 声明容器运行时监听的端口
EXPOSE map[80/tcp:{}]
# 2024-11-27 02:42:08 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2024-11-27 02:42:08 4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
# 2024-11-27 02:42:08 3.02KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
# 2024-11-27 02:42:08 389.00B 复制新文件或目录到容器中
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
# 2024-11-27 02:42:08 2.12KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
# 2024-11-27 02:42:08 1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2024-11-27 02:42:08 10.34MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -x && addgroup -g 101 -S nginx && adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx && apkArch="$(cat /etc/apk/arch)" && nginxPackages=" nginx=${NGINX_VERSION}-r${PKG_RELEASE} " && apk add --no-cache --virtual .checksum-deps openssl && case "$apkArch" in x86_64|aarch64) set -x && KEY_SHA512="e09fa32f0a0eab2b879ccbbc4d0e4fb9751486eedda75e35fac65802cc9faa266425edf83e261137a2f4d16281ce2c1a5f4502930fe75154723da014214f0655" && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub && if echo "$KEY_SHA512 */tmp/nginx_signing.rsa.pub" | sha512sum -c -; then echo "key verification succeeded!"; mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/; else echo "key verification failed!"; exit 1; fi && apk add -X "https://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" --no-cache $nginxPackages ;; *) set -x && tempDir="$(mktemp -d)" && chown nobody:nobody $tempDir && apk add --no-cache --virtual .build-deps gcc libc-dev make openssl-dev pcre2-dev zlib-dev linux-headers bash alpine-sdk findutils curl && su nobody -s /bin/sh -c " export HOME=${tempDir} && cd ${tempDir} && curl -f -L -O https://github.com/nginx/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz && PKGOSSCHECKSUM=\"5617feecfb441cd972b9ac51a2fd78384a3d2bde2f399163be0746d44ec8f7d8c47234af4f6b0012667c3d0446cced521f55f8f71254415e3766c2e3802bf960 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" && if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then echo \"pkg-oss tarball checksum verification succeeded!\"; else echo \"pkg-oss tarball checksum verification failed!\"; exit 1; fi && tar xzvf ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz && cd pkg-oss-${NGINX_VERSION}-${PKG_RELEASE} && cd alpine && make base && apk index --allow-untrusted -o ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz ${tempDir}/packages/alpine/${apkArch}/*.apk && abuild-sign -k ${tempDir}/.abuild/abuild-key.rsa ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz " && cp ${tempDir}/.abuild/abuild-key.rsa.pub /etc/apk/keys/ && apk del --no-network .build-deps && apk add -X ${tempDir}/packages/alpine/ --no-cache $nginxPackages ;; esac && apk del --no-network .checksum-deps && if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi && if [ -f "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache $runDeps && apk del --no-network .gettext && mv /tmp/envsubst /usr/local/bin/ && apk add --no-cache tzdata && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log && mkdir /docker-entrypoint.d # buildkit
# 2024-11-27 02:42:08 0.00B 设置环境变量 DYNPKG_RELEASE
ENV DYNPKG_RELEASE=1
# 2024-11-27 02:42:08 0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=1
# 2024-11-27 02:42:08 0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.27.3
# 2024-11-27 02:42:08 0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
# 2024-09-06 20:05:36 0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
# 2024-09-06 20:05:36 8.83MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.20.3-aarch64.tar.gz / # buildkit
镜像信息
{
"Id": "sha256:d835eebde567067ed225505b27a739f489bd723185fb3174ed093a7f981d1e91",
"RepoTags": [
"nginx:alpine-slim",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine-slim-linuxarm64"
],
"RepoDigests": [
"nginx@sha256:e9d4fe3e963d75580048fa9a860c514312c328f536595022e597d1c4729f073a",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx@sha256:6c267ffce9f892542a524f078f13200af47035b9aa97a385ed7ee3c204026585"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-11-26T18:42:08Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.27.3",
"PKG_RELEASE=1",
"DYNPKG_RELEASE=1"
],
"Cmd": [
"nginx",
"-g",
"daemon off;"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"maintainer": "NGINX Docker Maintainers \u003cdocker-maint@nginx.com\u003e"
},
"StopSignal": "SIGQUIT"
},
"Architecture": "arm64",
"Variant": "v8",
"Os": "linux",
"Size": 19173901,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/a68ba2eac8bfd6f7d46585c4a45c4ebd7631163ef211240ee5d9a52a9f9cc322/diff:/var/lib/docker/overlay2/20ce6ceb47c347aff93811c4267ee24981e31e86d280a602f8149ffbb033a14b/diff:/var/lib/docker/overlay2/d61fdf25a8d3bfd56c10a96fd906d030791a53a99923ae50595f8a1bfda5c4b3/diff:/var/lib/docker/overlay2/655f08ea0340bd5155aa056554b8c06e6fd0588817774d6924b907ec990b2f7d/diff:/var/lib/docker/overlay2/3ce15121aae33e8ac242fd0ab9bb0f069b6afc2a8fe7d05c2e101471b0e38501/diff:/var/lib/docker/overlay2/3a05abca9c107b869032bb266baddd218ecf380aba6745314a3182ae2ecfece7/diff",
"MergedDir": "/var/lib/docker/overlay2/077eabbca0919495181c17b38aa4563e2e9188c7115a2e4dae6fc85432bc0514/merged",
"UpperDir": "/var/lib/docker/overlay2/077eabbca0919495181c17b38aa4563e2e9188c7115a2e4dae6fc85432bc0514/diff",
"WorkDir": "/var/lib/docker/overlay2/077eabbca0919495181c17b38aa4563e2e9188c7115a2e4dae6fc85432bc0514/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:651d9022c23486dfbd396c13db293af6845731cbd098a5f5606db4bc9f5573e8",
"sha256:c8daa2408b16623d0e50335006fd26823a19bb8292fb43ca649bde3e6990bfa7",
"sha256:b9fa871438911605ecf66a28c8b220243a224ebcee595d4e7a9d98201f7cef60",
"sha256:f5b666d17f83fd1265d2e7c4d213bc5d8e442a71aadab48ee39df198c3a44455",
"sha256:c3ed1cc8c534722dc0fef6512f24ad654bb30347d972296c318a15562516690e",
"sha256:83ad708aba2d4c7efd54e9253ad703400b8d9d0fd55e716e6928805d3fab1456",
"sha256:2c4ffe5710964c1a2d937f6c0b01bcfacee063557416a4cea8a0f4d9eafd8526"
]
},
"Metadata": {
"LastTagTime": "2024-12-18T17:47:30.041359505+08:00"
}
}