镜像构建历史
# 2023-04-12 03:57:20 0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
# 2023-04-12 03:57:20 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2023-04-12 03:57:20 0.00B 声明容器运行时监听的端口
EXPOSE map[80/tcp:{}]
# 2023-04-12 03:57:20 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2023-04-12 03:57:20 4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
# 2023-04-12 03:57:20 1.27KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
# 2023-04-12 03:57:20 2.12KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
# 2023-04-12 03:57:20 1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2023-04-12 03:57:20 4.45MB 执行命令并创建新的镜像层
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=\"dc47dbaeb1c0874b264d34ddfec40e7d2b814e7db48d144e12d5991c743ef5fcf780ecbab72324e562dd84bb9c0e4dd71d14850b20ceaf470c46f8fe7510275b *${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 -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 .build-deps && apk add -X ${tempDir}/packages/alpine/ --no-cache $nginxPackages ;; esac && apk del .checksum-deps && if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi && if [ -n "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi && if [ -n "/etc/apk/keys/nginx_signing.rsa.pub" ]; then rm -f /etc/apk/keys/nginx_signing.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 .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
# 2023-04-12 03:57:20 0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=1
# 2023-04-12 03:57:20 0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.24.0
# 2023-04-12 03:57:20 0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
# 2023-04-12 03:57:20 0.00B
/bin/sh -c #(nop) CMD ["/bin/sh"]
# 2023-04-12 03:57:20 7.06MB
/bin/sh -c #(nop) ADD file:c44c9bd36ba35cc78fb9396304ea008def9f42a3beef76aa33b2cf1fde1c10b3 in /
镜像信息
{
"Id": "sha256:ee5112eafd255a2c921521a50e807fefd946c83b6d623260ff1d01e856423454",
"RepoTags": [
"nginx:stable-alpine3.17-slim",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/nginx:stable-alpine3.17-slim"
],
"RepoDigests": [
"nginx@sha256:5893dc08a2cb01e21592ff469346ebaacf49167fbc949f45e1c29111981b0427",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/nginx@sha256:2a56192436a0b9cf250d4e2b17b74b13d05bfc3f739d143149d658310afd838a"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2023-04-11T19:57:20Z",
"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.24.0",
"PKG_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": "amd64",
"Os": "linux",
"Size": 11517578,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/cc2fb6b8e6ef5dd5bdb798dc406de1978cdd2a9ace3202add5f3d7515a441894/diff:/var/lib/docker/overlay2/ac97363951592c6cc4cb51732ca05d50e6e24681354fa11187d7e4db77c6299a/diff:/var/lib/docker/overlay2/aebc64511eb5c8cab218245affe5af630ebd19238974d24d374dfabe754bcbca/diff:/var/lib/docker/overlay2/894c629b44ff8f20eb6f1ff9fc41c3287bd935b4374b71124cc4ff8485a88783/diff:/var/lib/docker/overlay2/b6b0e3adbf13194482a1ef173d75abee8cc384134e1dc3a9894a78ccc2d03b7b/diff",
"MergedDir": "/var/lib/docker/overlay2/2cef7e62ffc5e4fd1a9600080fdc3ac05a3d44daba6da3e3af0025d30c97fd62/merged",
"UpperDir": "/var/lib/docker/overlay2/2cef7e62ffc5e4fd1a9600080fdc3ac05a3d44daba6da3e3af0025d30c97fd62/diff",
"WorkDir": "/var/lib/docker/overlay2/2cef7e62ffc5e4fd1a9600080fdc3ac05a3d44daba6da3e3af0025d30c97fd62/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f4111324080ce5b633fab04c0f3f21b587f2ac10a289cc9e2760c67e0d26711c",
"sha256:5fa2288e0d6eeeddfeafab7f8c2e5f16228d9abb6cc553032abfdafed96492c9",
"sha256:419b89bbfa3b84bfb5e849544c47a2415734a138f25cba2f84aedcc64d64ec53",
"sha256:08761a690f8428542e5b1b945f854187a2afe103bd065185eeea6cc4f6824606",
"sha256:439be94dd989b2004ab6984f2ba2fc87ce898fb39e3be86edf29c294b180d13f",
"sha256:66afb7c3e6d12c88afd7b35d5313c3f273adf829fc5709666b0a2909f39578c9"
]
},
"Metadata": {
"LastTagTime": "2024-12-26T18:06:44.235711963+08:00"
}
}