镜像构建历史
# 2025-08-26 09:14:46 0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
# 2025-08-26 09:14:46 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2025-08-26 09:14:46 874.00B 复制新文件或目录到容器中
COPY nginx.conf /etc/nginx/conf.d/default.conf # buildkit
# 2025-08-26 09:14:46 100.72MB 复制新文件或目录到容器中
COPY /app/dist /usr/share/nginx/html # buildkit
# 2025-08-26 09:14:46 0.00B 设置环境变量 BASE_URL
ENV BASE_URL=
# 2025-08-26 09:14:46 0.00B 定义构建参数
ARG BASE_URL
# 2025-08-25 09:38:45 0.00B 指定运行容器时使用的用户
USER 101
# 2025-08-25 09:38:45 36.32MB 执行命令并创建新的镜像层
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${DYNPKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-r${DYNPKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-r${DYNPKG_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/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 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=\"517bc18954ccf4efddd51986584ca1f37966833ad342a297e1fe58fd0faf14c5a4dabcb23519dca433878a2927a95d6bea05a6749ee2fa67a33bf24cdc41b1e4 *${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 module-geoip module-image-filter module-njs module-xslt && 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 curl ca-certificates # buildkit
# 2025-08-25 09:38:45 0.00B 指定运行容器时使用的用户
USER root
# 2025-08-25 09:38:45 0.00B 定义构建参数
ARG GID=101
# 2025-08-25 09:38:45 0.00B 定义构建参数
ARG UID=101
# 2025-08-25 09:38:45 0.00B 设置环境变量 NJS_RELEASE
ENV NJS_RELEASE=1
# 2025-08-25 09:38:45 0.00B 设置环境变量 NJS_VERSION
ENV NJS_VERSION=0.8.10
# 2025-08-25 08:04:14 0.00B 设置默认要执行的命令
CMD ["nginx" "-g" "daemon off;"]
# 2025-08-25 08:04:14 0.00B 指定运行容器时使用的用户
USER 101
# 2025-08-25 08:04:14 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2025-08-25 08:04:14 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2025-08-25 08:04:14 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2025-08-25 08:04:14 4.62KB 复制新文件或目录到容器中
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
# 2025-08-25 08:04:14 3.01KB 复制新文件或目录到容器中
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
# 2025-08-25 08:04:14 389.00B 复制新文件或目录到容器中
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
# 2025-08-25 08:04:14 2.13KB 复制新文件或目录到容器中
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
# 2025-08-25 08:04:14 1.62KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2025-08-25 08:04:14 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\)\{0\,1\}/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
# 2025-08-25 08:04:14 4.05MB 执行命令并创建新的镜像层
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/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=\"517bc18954ccf4efddd51986584ca1f37966833ad342a297e1fe58fd0faf14c5a4dabcb23519dca433878a2927a95d6bea05a6749ee2fa67a33bf24cdc41b1e4 *${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 gettext-envsubst && 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
# 2025-08-25 08:04:14 0.00B 定义构建参数
ARG GID=101
# 2025-08-25 08:04:14 0.00B 定义构建参数
ARG UID=101
# 2025-08-25 08:04:14 0.00B 设置环境变量 DYNPKG_RELEASE
ENV DYNPKG_RELEASE=1
# 2025-08-25 08:04:14 0.00B 设置环境变量 PKG_RELEASE
ENV PKG_RELEASE=1
# 2025-08-25 08:04:14 0.00B 设置环境变量 NGINX_VERSION
ENV NGINX_VERSION=1.28.0
# 2025-08-25 08:04:14 0.00B 添加元数据标签
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
# 2025-07-15 19:30:48 0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
# 2025-07-15 19:30:48 7.82MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.4-x86_64.tar.gz / # buildkit
镜像信息
{
"Id": "sha256:b732bd6d843706db02d49a7793b12cd3efd8667714aa45af34d2aa47b5f83968",
"RepoTags": [
"ghcr.io/sharevb/it-tools:nightly",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/sharevb/it-tools:nightly"
],
"RepoDigests": [
"ghcr.io/sharevb/it-tools@sha256:16617dee5a7a2969cd1a066019fcf40562a449e8e643ca7136c8bac0abedbb57",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/sharevb/it-tools@sha256:a9c7596fb3f3c7a292c5eac73bd5bfe86113148485512e4934612df697c5eaa2"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-08-26T01:14:46.27281187Z",
"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.28.0",
"PKG_RELEASE=1",
"DYNPKG_RELEASE=1",
"NJS_VERSION=0.8.10",
"NJS_RELEASE=1",
"BASE_URL="
],
"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": "2025-08-25T01:38:36.321Z",
"org.opencontainers.image.description": "Unprivileged NGINX Dockerfiles",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "013dcf4aa453a6e747adc60ce13ca7ffda683090",
"org.opencontainers.image.source": "https://github.com/nginx/docker-nginx-unprivileged",
"org.opencontainers.image.title": "docker-nginx-unprivileged",
"org.opencontainers.image.url": "https://github.com/nginx/docker-nginx-unprivileged",
"org.opencontainers.image.version": "1.28.0-alpine"
},
"StopSignal": "SIGQUIT"
},
"Architecture": "amd64",
"Os": "linux",
"Size": 148935591,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/9b4a4f1fc30847c82fe527f4e5180fbc735a0a5a987a2d20bb1c59752f162387/diff:/var/lib/docker/overlay2/0acc9702ac2c4b088476aede43c23ed1cd0656d2c827c2299d96d9a1919f4193/diff:/var/lib/docker/overlay2/52b4fbd3cd13a5f5479a9a8e8d84347bf10933437bb294e4b34e284a477943f5/diff:/var/lib/docker/overlay2/94d834152c1d0ab1b42af5f60725e49e88a7f6ab8eee4c919ea191bf9a49fd02/diff:/var/lib/docker/overlay2/57cf2d958a77e333598b6bb6e1e1a619a29d35d0abb3ffe1a126061eab0b4dab/diff:/var/lib/docker/overlay2/8e4d515abe2d68f1520907f9eadbead1a78f252ee5bc2f41561c2261e8846e48/diff:/var/lib/docker/overlay2/2d261a4a9f8bb3007ab92c33dd18e4e49797327cc452e24046da1656f3256beb/diff:/var/lib/docker/overlay2/376106de04c179f994d07384b4fbfe2a5ef858eda14892a3926b94cbe47248d6/diff:/var/lib/docker/overlay2/4306c6f0ebdb8ae698f7b0b6125bd25028702f782d385edc0daf3e613c0fed78/diff:/var/lib/docker/overlay2/f27eaa635426ded178015976f1ee49eff6bfdb7ad08b642524a0e5cf8f1c2364/diff",
"MergedDir": "/var/lib/docker/overlay2/d996232aba6bfe684a325887f2a0b5760024bd3ce83e0514169afb483bf053e7/merged",
"UpperDir": "/var/lib/docker/overlay2/d996232aba6bfe684a325887f2a0b5760024bd3ce83e0514169afb483bf053e7/diff",
"WorkDir": "/var/lib/docker/overlay2/d996232aba6bfe684a325887f2a0b5760024bd3ce83e0514169afb483bf053e7/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:7003d23cc2176ec98ba2f8b3b4b9b5f144ef370e39bfcf6275a92b5064bc9261",
"sha256:f7f8b4c7ad597f487766ba10fb116fbe42d4ea2e3adeabea296247a1d09f00ec",
"sha256:b95d2600f75c72705c79406ea59a6a68df92237c982e525904d456af068d4a05",
"sha256:ced178dbc7c72208806248f01343092e280110d72e88a5604f141a131dbbd0d2",
"sha256:ca9fefa946032352fd6a4800854f5642656a6fbcae706b52d0ed8299f9bbd214",
"sha256:2bd2ea0e4d2964e113edb9e8e84f35eb6e55248894e9cc899324b13e00c0645a",
"sha256:9f62ed6019fbc6198c04f308d1a0a4a94beeb1d8f9c172d78c0a9dcfb30a8adc",
"sha256:48a963f52dce9ca962edc470c0b653e4de7eaa6a8bcb23031a448e38b73c4bda",
"sha256:efe335f70d03617db05c8cf574d10b349e3ce627cc439fecb36faf838f7bf19f",
"sha256:e428889e1a1927df19b24fce1b4d56ae6ed92b8f403eb750ced0738bd2018c2e",
"sha256:a0dd62f88e7b07c1b9ba530c694d6bb91da798df4c6e4171943b2ee9106023fc"
]
},
"Metadata": {
"LastTagTime": "2025-08-28T14:35:08.074856046+08:00"
}
}