镜像构建历史
# 2024-06-21 08:41:06 0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
# 2024-06-21 08:41:06 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2024-06-21 08:41:06 0.00B 声明容器运行时监听的端口
EXPOSE map[80/tcp:{}]
# 2024-06-21 08:41:06 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2024-06-21 08:41:06 4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
# 2024-06-21 08:41:06 3.02KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
# 2024-06-21 08:41:06 336.00B 复制新文件或目录到容器中
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
# 2024-06-21 08:41:06 2.12KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
# 2024-06-21 08:41:06 1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2024-06-21 08:41:06 4.61MB 执行命令并创建新的镜像层
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/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 && su nobody -s /bin/sh -c " export HOME=${tempDir} && cd ${tempDir} && curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz && PKGOSSCHECKSUM=\"0db2bf5f86e7c31f23d0e3e7699a5d8a4d9d9b0dc2f98d3e3a31e004df20206270debf6502e4481892e8b64d55fba73fcc8d74c3e0ddfcd2d3f85a17fa02a25e *${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-06-21 08:41:06 0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=2
# 2024-06-21 08:41:06 0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.26.1
# 2024-06-21 08:41:06 0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
# 2024-06-21 04:17:04 0.00B
/bin/sh -c #(nop) CMD ["/bin/sh"]
# 2024-06-21 04:17:04 7.40MB
/bin/sh -c #(nop) ADD file:fb066571462e703f86645131b43d211ff8531ffac77ea394456bfe569a6f17fe in /
镜像信息
{
"Id": "sha256:c5b156a1bc594155894ba577c16309193219ccb847866ee832f5df0d8401e1cc",
"RepoTags": [
"nginx:1.26.1-alpine-slim",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:1.26.1-alpine-slim"
],
"RepoDigests": [
"nginx@sha256:ce01dacf330fdcbc3c93926291ab027396e7e9680a4180318b06e86525d1aa9f",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx@sha256:10fd8039cc236d13379791e90af38daf7d257dd8c63c5bb2caefb08910789cdb"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-06-21T00:41:06Z",
"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.26.1",
"PKG_RELEASE=2"
],
"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": "amd64",
"Os": "linux",
"Size": 12014467,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/04bb98699e73bc318b963bf32c1c992e00273cd0f9ff0cee1598ed6121e32503/diff:/var/lib/docker/overlay2/21c0c6c763f735eff7201b0ec7d341f3f0c8f75fba2df37aaa0099a1b74ae736/diff:/var/lib/docker/overlay2/0a258371a2d19eb9f5774de98b883a35bf2d34ddf9518498887abc3045b4d415/diff:/var/lib/docker/overlay2/b0777f67f0ccc0623f1399566b12ef822756813743f84d7aebb1a2f93933c0c7/diff:/var/lib/docker/overlay2/0d6df79b83f4be671160a5548e9e12541faa1039f9c51089b875931cceeac49b/diff:/var/lib/docker/overlay2/6254a6b9e3e36c5781ddb0a682436ecfc55b42e15bdd53dc7fe27c53eb9ac408/diff",
"MergedDir": "/var/lib/docker/overlay2/0ff01c29db20d297eb9b935b89bafec3408332d1b7b54c5d50de5030655033c1/merged",
"UpperDir": "/var/lib/docker/overlay2/0ff01c29db20d297eb9b935b89bafec3408332d1b7b54c5d50de5030655033c1/diff",
"WorkDir": "/var/lib/docker/overlay2/0ff01c29db20d297eb9b935b89bafec3408332d1b7b54c5d50de5030655033c1/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:af9a70194aa4d12f967dbd4bcb1ce9c98ba42adb4ec05536080fd4560155e809",
"sha256:3412cc8c9e992ceb2e1d66e01f22d7b5a0d13aba1ea29caba3c06c1a87a1f882",
"sha256:7d8ec7787b4e6ed2d9c0b1067979bae2750c624035547a818138bd033fa48656",
"sha256:5ccc0877b840665641f9bcdc2f6afd0c5121abb6745415a240ef413868dae3be",
"sha256:eb0b050f7bb0f0e410d9b64e0e7e84963c30da41c07783473c383f7b041fde73",
"sha256:3281b7b09ca00275666e30a3148da9fff00cca99696ef219518c1999e21e1bc2",
"sha256:e0e7472295172920565864c9de45fc782743b9a7ece21e21dcf387d31a43ef17"
]
},
"Metadata": {
"LastTagTime": "2024-07-16T16:21:14.17809365+08:00"
}
}