镜像构建历史
# 2024-05-27 09:17:58 0.00B 指定运行容器时使用的用户
USER 101
# 2024-05-27 09:17:58 31.23MB 执行命令并创建新的镜像层
RUN |2 UID=101 GID=101 /bin/sh -c set -x && apkArch="$(cat /etc/apk/arch)" && nginxPackages=" nginx=${NGINX_VERSION}-r${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-r${PKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${NJS_RELEASE} " && apk add --no-cache --virtual .checksum-deps openssl && case "$apkArch" in x86_64|aarch64) 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 libxslt-dev gd-dev geoip-dev libedit-dev 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/27357d6c5453.tar.gz && PKGOSSCHECKSUM=\"a80fc5706ad8e98597478b9e041f658375d53d22f7c8004dd16354067a3d48eb4ef234830b697ddf5c45ec57b837237cc11317bcaaa5133ccbe71bce15d969b0 *27357d6c5453.tar.gz\" && if [ \"\$(openssl sha512 -r 27357d6c5453.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then echo \"pkg-oss tarball checksum verification succeeded!\"; else echo \"pkg-oss tarball checksum verification failed!\"; exit 1; fi && tar xzvf 27357d6c5453.tar.gz && cd pkg-oss-27357d6c5453 && cd alpine && make module-geoip module-image-filter module-njs module-xslt && 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 --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 curl ca-certificates # buildkit
# 2024-05-27 09:17:58 0.00B 指定运行容器时使用的用户
USER root
# 2024-05-27 09:17:58 0.00B 定义构建参数
ARG GID=101
# 2024-05-27 09:17:58 0.00B 定义构建参数
ARG UID=101
# 2024-05-27 09:17:58 0.00B 设置环境变量 NJS_RELEASE
ENV NJS_RELEASE=3
# 2024-05-27 09:17:58 0.00B 设置环境变量 NJS_VERSION
ENV NJS_VERSION=0.8.4
# 2024-05-27 08:18:08 0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
# 2024-05-27 08:18:08 0.00B 指定运行容器时使用的用户
USER 101
# 2024-05-27 08:18:08 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2024-05-27 08:18:08 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2024-05-27 08:18:08 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2024-05-27 08:18:08 4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
# 2024-05-27 08:18:08 3.01KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
# 2024-05-27 08:18:08 336.00B 复制新文件或目录到容器中
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
# 2024-05-27 08:18:08 2.13KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
# 2024-05-27 08:18:08 1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2024-05-27 08:18:08 10.65KB 执行命令并创建新的镜像层
RUN |2 UID=101 GID=101 /bin/sh -c sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.conf && sed -i '/user nginx;/d' /etc/nginx/nginx.conf && sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf && sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf && chown -R $UID:0 /var/cache/nginx && chmod -R g+w /var/cache/nginx && chown -R $UID:0 /etc/nginx && chmod -R g+w /etc/nginx # buildkit
# 2024-05-27 08:18:08 9.70MB 执行命令并创建新的镜像层
RUN |2 UID=101 GID=101 /bin/sh -c set -x && addgroup -g $GID -S nginx || true && adduser -S -D -H -u $UID -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx || true && 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 && su nobody -s /bin/sh -c " export HOME=${tempDir} && cd ${tempDir} && curl -f -O https://hg.nginx.org/pkg-oss/archive/27357d6c5453.tar.gz && PKGOSSCHECKSUM=\"a80fc5706ad8e98597478b9e041f658375d53d22f7c8004dd16354067a3d48eb4ef234830b697ddf5c45ec57b837237cc11317bcaaa5133ccbe71bce15d969b0 *27357d6c5453.tar.gz\" && if [ \"\$(openssl sha512 -r 27357d6c5453.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then echo \"pkg-oss tarball checksum verification succeeded!\"; else echo \"pkg-oss tarball checksum verification failed!\"; exit 1; fi && tar xzvf 27357d6c5453.tar.gz && cd pkg-oss-27357d6c5453 && 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 --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-05-27 08:18:08 0.00B 定义构建参数
ARG GID=101
# 2024-05-27 08:18:08 0.00B 定义构建参数
ARG UID=101
# 2024-05-27 08:18:08 0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=1
# 2024-05-27 08:18:08 0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.25.5
# 2024-05-27 08:18:08 0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
# 2024-01-27 08:30:48 0.00B
/bin/sh -c #(nop) CMD ["/bin/sh"]
# 2024-01-27 08:30:48 7.38MB
/bin/sh -c #(nop) ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in /
镜像信息
{
"Id": "sha256:41c8806c2f3fc55cb320a08c087f81cdfb774a071deaaeacecaac46abd256088",
"RepoTags": [
"nginxinc/nginx-unprivileged:1.25-alpine",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged:1.25-alpine"
],
"RepoDigests": [
"nginxinc/nginx-unprivileged@sha256:8265b1df5a89cc1a0a067e472bf47aca7cee52f0561c98a0dff91312dcdd8adb",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginxinc/nginx-unprivileged@sha256:8fd249105610eb60bb15e78974c6b959cadbdd03ef320d892bf23e19f66b93df"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-05-27T01:17:58.277478795Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "101",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.25.5",
"PKG_RELEASE=1",
"NJS_VERSION=0.8.4",
"NJS_RELEASE=3"
],
"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",
"org.opencontainers.image.created": "2024-05-27T01:17:41.335Z",
"org.opencontainers.image.description": "Unprivileged NGINX Dockerfiles",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "7ebc14de7f909407a2c8221d0fafffbf3cd3c8e2",
"org.opencontainers.image.source": "https://github.com/nginxinc/docker-nginx-unprivileged",
"org.opencontainers.image.title": "docker-nginx-unprivileged",
"org.opencontainers.image.url": "https://github.com/nginxinc/docker-nginx-unprivileged",
"org.opencontainers.image.version": "1.25.5-alpine"
},
"StopSignal": "SIGQUIT"
},
"Architecture": "amd64",
"Os": "linux",
"Size": 48322331,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/dde9fdc4732e8bfa12c62aae87dc9dad8ab8359cb8e1b5bebf077961960d1fc2/diff:/var/lib/docker/overlay2/4e2048e159354176d6cbc36dbd5d64c7b90eaea9d1a691f4ecded324c0be8c43/diff:/var/lib/docker/overlay2/8d34604f2a415994e98687b7cfec2c03be22ea111e2bbee18855bf100f3e95ab/diff:/var/lib/docker/overlay2/1da379565379dabd6c649d784b6fdc9674a9190ab6ccb7bcf9afa95e02811f5a/diff:/var/lib/docker/overlay2/ef66775f25b5089c7606a2d1e06d7abe67e0bfef80099147273ab5a2a4040dda/diff:/var/lib/docker/overlay2/0651c08b025ab384c8987de8c222355f65923297a5ecc7871838acfffeea47eb/diff:/var/lib/docker/overlay2/f9fe1a2c6aa827c5e049a57df38e020ae08e125084c0ae30d40640635fc2c98b/diff:/var/lib/docker/overlay2/05020cdd716af9042a848dfa1a82562fa9510169a4d19fd27c55bee01abe28d6/diff",
"MergedDir": "/var/lib/docker/overlay2/ae0ad88832b2d6a10c5b90b7d20ea158ed234a60ee8592ae65dde1e54e00e1ed/merged",
"UpperDir": "/var/lib/docker/overlay2/ae0ad88832b2d6a10c5b90b7d20ea158ed234a60ee8592ae65dde1e54e00e1ed/diff",
"WorkDir": "/var/lib/docker/overlay2/ae0ad88832b2d6a10c5b90b7d20ea158ed234a60ee8592ae65dde1e54e00e1ed/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d4fc045c9e3a848011de66f34b81f052d4f2c15a17bb196d637e526349601820",
"sha256:1962b73544127d3cf3bcc2fbb948790b09e47795604a7d71435589ef1a7b7b87",
"sha256:3fef999ce7d16dd0f01d3055eadfab5bd8ae38f222dd7f3a16b1b9e218c1fb95",
"sha256:36b40600827bf3f08f84258c56782e4ab176b99c2f46772b26fa28562480b7e0",
"sha256:00d483796851faa48b4e393c85933092a1649f9a98e15203e531a409bdb15555",
"sha256:dce94ce6d2cd68642e4dd703da31f4150684fc2d86a29f3aa9dfb9301986543a",
"sha256:d27dbfb71138c9edb8b6bef6316f49ec2ca942fb18c0e61f430cda17c8e3824b",
"sha256:ccfc95ff048d5c4bd81b8ed4f951c6420b9eb6f5c51969b0f64ad5ae84b68f68",
"sha256:38762db5fc32395188c15921e04c66b19547e44a600426edb933796136c76953"
]
},
"Metadata": {
"LastTagTime": "2024-10-22T17:25:18.185426441+08:00"
}
}