镜像构建历史
# 2024-04-23 22:09:58 115.50MB 复制新文件或目录到容器中
COPY /data/static /usr/share/nginx/html # buildkit
# 2023-04-12 03:57:20 29.59MB 执行命令并创建新的镜像层
RUN /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${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 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/${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 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 .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 curl ca-certificates # buildkit
# 2023-04-12 03:57:20 0.00B 设置环境变量 NJS_VERSION
ENV NJS_VERSION=0.7.12
# 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:d175c7b2e25df5f4b01e8a28105c202cb1d2610a07cc9eb8109c1da93f65d16f",
"RepoTags": [
"ghcr.io/logseq/logseq-webapp:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/logseq/logseq-webapp:latest"
],
"RepoDigests": [
"ghcr.io/logseq/logseq-webapp@sha256:3c902240a9cfdb50600eb5c843042d5e0c5a5b1a1d420ced9d18cb86e7490744",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/logseq/logseq-webapp@sha256:1ae83a398707efa1737eb56441cdbbeb367fee50c344427a86ea2b7e70ef0bdf"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-04-23T14:09:58.534103211Z",
"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",
"NJS_VERSION=0.7.12"
],
"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": 156603063,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/a2956fae97837f56d45b6111618485afc3a9bec581d2dcea3f1de5b9fb176660/diff:/var/lib/docker/overlay2/2cef7e62ffc5e4fd1a9600080fdc3ac05a3d44daba6da3e3af0025d30c97fd62/diff:/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/156c16d338df919a6f5476104a96ffa7b6c5a5ff4425d66da6b740330855fe1d/merged",
"UpperDir": "/var/lib/docker/overlay2/156c16d338df919a6f5476104a96ffa7b6c5a5ff4425d66da6b740330855fe1d/diff",
"WorkDir": "/var/lib/docker/overlay2/156c16d338df919a6f5476104a96ffa7b6c5a5ff4425d66da6b740330855fe1d/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f4111324080ce5b633fab04c0f3f21b587f2ac10a289cc9e2760c67e0d26711c",
"sha256:5fa2288e0d6eeeddfeafab7f8c2e5f16228d9abb6cc553032abfdafed96492c9",
"sha256:419b89bbfa3b84bfb5e849544c47a2415734a138f25cba2f84aedcc64d64ec53",
"sha256:08761a690f8428542e5b1b945f854187a2afe103bd065185eeea6cc4f6824606",
"sha256:439be94dd989b2004ab6984f2ba2fc87ce898fb39e3be86edf29c294b180d13f",
"sha256:66afb7c3e6d12c88afd7b35d5313c3f273adf829fc5709666b0a2909f39578c9",
"sha256:7388ed75460c13e99e8d350ab0d1cfa6928700abc06fe7384650ec093f14b220",
"sha256:78f3b75d98770b58cefdbf197b7bbd4015f3e8e10263ca6a510cd0422785d7ca"
]
},
"Metadata": {
"LastTagTime": "2024-12-10T15:17:58.426870625+08:00"
}
}