镜像构建历史
# 2026-11-23 16:40:38 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2026-11-23 16:40:38 0.00B 设置默认要执行的命令
CMD ["/usr/local/openresty/bin/openresty" "-g" "daemon off;"]
# 2026-11-23 16:40:38 0.00B 执行命令并创建新的镜像层
RUN |31 RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=noble RESTY_VERSION=1.31.9.1 RESTY_SHA256=71d49935bdc186dafc1f4b0a8ba44dba1bf4abc8ca52d4621f2039ec8fdcc95f RESTY_OPENSSL_VERSION=3.5.9 RESTY_OPENSSL_SHA256=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a RESTY_OPENSSL_PATCH_VERSION=3.5.5 RESTY_OPENSSL_URL_BASE=https://github.com/openssl/openssl/releases/download/openssl-3.5.9 RESTY_OPENSSL_BUILD_OPTIONS=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips RESTY_PCRE_VERSION=10.49 RESTY_PCRE_SHA256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae RESTY_PCRE_BUILD_OPTIONS=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind RESTY_LUAROCKS_VERSION=3.13.0 RESTY_LUAROCKS_SHA256=245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37 RESTY_J=4 RESTY_ADD_PACKAGE_BUILDDEPS= RESTY_ADD_PACKAGE_RUNDEPS= CONTAINER_PACKAGE_URL= NGX_BROTLI_REV=53e0fb55f250f48fe80c0ddbf6c0f7103cdbaae1 NGX_BROTLI_SHA256=27a4352dae4ba4922f9f013f3f0d02359aceeef2701872efa42849c3ba05457a BROTLI_REV=db24a98aed38a16de78cc05ca15cdd8dc2a0d92d BROTLI_SHA256=113b9685dfc14dd2f3360d077283266eec2fbdfb0fe3e5600f11be151da0d68e RESTY_CONFIG_OPTIONS= --with-compat --without-http_rds_json_module --without-http_rds_csv_module --without-lua_rds_parser --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads RESTY_CONFIG_OPTIONS_MORE= RESTY_LUAJIT_OPTIONS=--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT' RESTY_PCRE_OPTIONS=--with-pcre-jit RESTY_EVAL_PRE_CONFIGURE= RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE= RESTY_EVAL_PRE_MAKE= RESTY_EVAL_POST_MAKE= _RESTY_CONFIG_DEPS=--with-pcre --with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include' --with-ld-opt='-L/usr/local/openresty/pcre2/lib -L/usr/local/openresty/openssl3/lib -Wl,-rpath,/usr/local/openresty/pcre2/lib:/usr/local/openresty/openssl3/lib' /bin/bash -o pipefail -c if [ -f /tmp/default.sh ]; then cd /tmp && bash -e /tmp/default.sh; fi # buildkit
# 2026-11-23 16:40:38 28.05KB 复制新文件或目录到容器中
COPY /tmp/luafilesystem-1_8_0/src/lfs.so /usr/local/openresty/luajit/lib/lua/5.1/lfs.so # buildkit
# 2026-11-23 16:40:38 62.22KB 复制新文件或目录到容器中
COPY /tmp/lsqlite3/lsqlite3.so /usr/local/openresty/luajit/lib/lua/5.1/lsqlite3.so # buildkit
# 2026-11-23 16:40:38 522.42KB 复制新文件或目录到容器中
COPY /tmp/libinjection.so /usr/local/openresty/1pwaf/libraries/libinjection.so # buildkit
# 2026-11-23 16:40:38 84.33KB 复制新文件或目录到容器中
COPY /usr/local/lib/libmaxminddb.so.0.0.7 /usr/local/openresty/1pwaf/libraries/libmaxminddb.so # buildkit
# 2026-11-23 16:40:38 524.00B 复制新文件或目录到容器中
COPY /tmp/1pwaf/data/default/index.html /usr/local/openresty/nginx/html/index.html # buildkit
# 2026-11-23 16:40:38 21.06MB 复制新文件或目录到容器中
COPY /tmp/1pwaf /usr/local/openresty/1pwaf # buildkit
# 2026-11-23 16:40:33 0.00B 设置环境变量 WAF_PATH
ENV WAF_PATH=/usr/local/openresty/1pwaf
# 2026-11-23 16:40:33 1.32KB 复制新文件或目录到容器中
COPY docker/COPYRIGHT.docker-openresty /usr/local/openresty/COPYRIGHT.docker-openresty # buildkit
# 2026-11-23 16:40:33 281.00B 复制新文件或目录到容器中
COPY docker/default.conf /etc/nginx/conf.d/default.conf # buildkit
# 2026-11-23 16:40:33 584.00B 复制新文件或目录到容器中
COPY docker/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf # buildkit
# 2026-11-23 16:40:33 0.00B 设置环境变量 LUA_CPATH
ENV LUA_CPATH=/usr/local/openresty/site/lualib/?.so;/usr/local/openresty/lualib/?.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so;;
# 2026-11-23 16:40:33 0.00B 设置环境变量 LUA_PATH
ENV LUA_PATH=/usr/local/openresty/site/lualib/?.lua;/usr/local/openresty/site/lualib/?/init.lua;/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua;;
# 2026-11-23 16:40:33 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2026-11-23 16:40:33 35.88MB 执行命令并创建新的镜像层
RUN |31 RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=noble RESTY_VERSION=1.31.9.1 RESTY_SHA256=71d49935bdc186dafc1f4b0a8ba44dba1bf4abc8ca52d4621f2039ec8fdcc95f RESTY_OPENSSL_VERSION=3.5.9 RESTY_OPENSSL_SHA256=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a RESTY_OPENSSL_PATCH_VERSION=3.5.5 RESTY_OPENSSL_URL_BASE=https://github.com/openssl/openssl/releases/download/openssl-3.5.9 RESTY_OPENSSL_BUILD_OPTIONS=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips RESTY_PCRE_VERSION=10.49 RESTY_PCRE_SHA256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae RESTY_PCRE_BUILD_OPTIONS=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind RESTY_LUAROCKS_VERSION=3.13.0 RESTY_LUAROCKS_SHA256=245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37 RESTY_J=4 RESTY_ADD_PACKAGE_BUILDDEPS= RESTY_ADD_PACKAGE_RUNDEPS= CONTAINER_PACKAGE_URL= NGX_BROTLI_REV=53e0fb55f250f48fe80c0ddbf6c0f7103cdbaae1 NGX_BROTLI_SHA256=27a4352dae4ba4922f9f013f3f0d02359aceeef2701872efa42849c3ba05457a BROTLI_REV=db24a98aed38a16de78cc05ca15cdd8dc2a0d92d BROTLI_SHA256=113b9685dfc14dd2f3360d077283266eec2fbdfb0fe3e5600f11be151da0d68e RESTY_CONFIG_OPTIONS= --with-compat --without-http_rds_json_module --without-http_rds_csv_module --without-lua_rds_parser --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads RESTY_CONFIG_OPTIONS_MORE= RESTY_LUAJIT_OPTIONS=--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT' RESTY_PCRE_OPTIONS=--with-pcre-jit RESTY_EVAL_PRE_CONFIGURE= RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE= RESTY_EVAL_PRE_MAKE= RESTY_EVAL_POST_MAKE= _RESTY_CONFIG_DEPS=--with-pcre --with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include' --with-ld-opt='-L/usr/local/openresty/pcre2/lib -L/usr/local/openresty/openssl3/lib -Wl,-rpath,/usr/local/openresty/pcre2/lib:/usr/local/openresty/openssl3/lib' /bin/bash -o pipefail -c set -eu; cd /tmp; if [ -f /tmp/pre.sh ]; then apt-get update; bash -e /tmp/pre.sh; rm -rf /var/lib/apt/lists/*; fi; if [ -n "${RESTY_EVAL_PRE_CONFIGURE}" ]; then eval "${RESTY_EVAL_PRE_CONFIGURE}"; fi; cd /tmp; tar xzf "openresty-${RESTY_VERSION}.tar.gz"; cd "openresty-${RESTY_VERSION}"; if [ -n "${RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE}" ]; then eval "${RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE}"; fi; eval ./configure -j${RESTY_J} ${_RESTY_CONFIG_DEPS} ${RESTY_CONFIG_OPTIONS} ${RESTY_CONFIG_OPTIONS_MORE} ${RESTY_LUAJIT_OPTIONS} ${RESTY_PCRE_OPTIONS}; if [ -n "${RESTY_EVAL_PRE_MAKE}" ]; then eval "${RESTY_EVAL_PRE_MAKE}"; fi; make -j${RESTY_J}; make install; cd /tmp; tar xzf "luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz"; cd "luarocks-${RESTY_LUAROCKS_VERSION}"; ./configure --prefix=/usr/local/openresty/luajit --with-lua=/usr/local/openresty/luajit --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1; make build; make install; cd /tmp; if [ -n "${RESTY_EVAL_POST_MAKE}" ]; then eval "${RESTY_EVAL_POST_MAKE}"; fi; rm -rf "openresty-${RESTY_VERSION}" "openresty-${RESTY_VERSION}.tar.gz" "luarocks-${RESTY_LUAROCKS_VERSION}" "luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz"; mkdir -p /var/run/openresty /etc/nginx/conf.d; ln -sf /dev/stdout /usr/local/openresty/nginx/logs/access.log; ln -sf /dev/stderr /usr/local/openresty/nginx/logs/error.log # buildkit
# 2026-11-23 16:39:06 0.00B 添加元数据标签
LABEL resty_image_base=ubuntu resty_image_tag=noble resty_version=1.31.9.1 resty_openssl_version=3.5.9 resty_openssl_patch_version=3.5.5 resty_openssl_build_options=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips resty_pcre_version=10.49 resty_pcre_build_options=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind resty_pcre_sha256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae resty_luarocks_version=3.13.0 resty_config_options= --with-compat --without-http_rds_json_module --without-http_rds_csv_module --without-lua_rds_parser --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads resty_config_options_more= resty_config_deps=--with-pcre --with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include' --with-ld-opt='-L/usr/local/openresty/pcre2/lib -L/usr/local/openresty/openssl3/lib -Wl,-rpath,/usr/local/openresty/pcre2/lib:/usr/local/openresty/openssl3/lib' resty_luajit_options=--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT' resty_pcre_options=--with-pcre-jit
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG _RESTY_CONFIG_DEPS=--with-pcre --with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include' --with-ld-opt='-L/usr/local/openresty/pcre2/lib -L/usr/local/openresty/openssl3/lib -Wl,-rpath,/usr/local/openresty/pcre2/lib:/usr/local/openresty/openssl3/lib'
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_EVAL_POST_MAKE=
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_EVAL_PRE_MAKE=
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE=
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_EVAL_PRE_CONFIGURE=
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_PCRE_OPTIONS=--with-pcre-jit
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_LUAJIT_OPTIONS=--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT'
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_CONFIG_OPTIONS_MORE=
# 2026-11-23 16:39:06 0.00B 定义构建参数
ARG RESTY_CONFIG_OPTIONS= --with-compat --without-http_rds_json_module --without-http_rds_csv_module --without-lua_rds_parser --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads
# 2026-11-23 16:39:06 6.55MB 执行命令并创建新的镜像层
RUN |22 RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=noble RESTY_VERSION=1.31.9.1 RESTY_SHA256=71d49935bdc186dafc1f4b0a8ba44dba1bf4abc8ca52d4621f2039ec8fdcc95f RESTY_OPENSSL_VERSION=3.5.9 RESTY_OPENSSL_SHA256=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a RESTY_OPENSSL_PATCH_VERSION=3.5.5 RESTY_OPENSSL_URL_BASE=https://github.com/openssl/openssl/releases/download/openssl-3.5.9 RESTY_OPENSSL_BUILD_OPTIONS=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips RESTY_PCRE_VERSION=10.49 RESTY_PCRE_SHA256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae RESTY_PCRE_BUILD_OPTIONS=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind RESTY_LUAROCKS_VERSION=3.13.0 RESTY_LUAROCKS_SHA256=245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37 RESTY_J=4 RESTY_ADD_PACKAGE_BUILDDEPS= RESTY_ADD_PACKAGE_RUNDEPS= CONTAINER_PACKAGE_URL= NGX_BROTLI_REV=53e0fb55f250f48fe80c0ddbf6c0f7103cdbaae1 NGX_BROTLI_SHA256=27a4352dae4ba4922f9f013f3f0d02359aceeef2701872efa42849c3ba05457a BROTLI_REV=db24a98aed38a16de78cc05ca15cdd8dc2a0d92d BROTLI_SHA256=113b9685dfc14dd2f3360d077283266eec2fbdfb0fe3e5600f11be151da0d68e /bin/bash -o pipefail -c set -eu; cd /tmp; for component in ngx_brotli brotli; do if [ "$component" = ngx_brotli ]; then rev=$NGX_BROTLI_REV; sha=$NGX_BROTLI_SHA256; else rev=$BROTLI_REV; sha=$BROTLI_SHA256; fi; archive="$component-$rev.tar.gz"; if [ ! -f "$archive" ]; then curl -fSL --retry 3 "https://codeload.github.com/google/$component/tar.gz/$rev" -o "$archive"; fi; printf '%s %s\n' "$sha" "$archive" | sha256sum --check -; tar xzf "$archive"; rm "$archive"; done; mkdir -p /usr/local/openresty/modules; mv "ngx_brotli-$NGX_BROTLI_REV" /usr/local/openresty/modules/ngx_brotli; rmdir /usr/local/openresty/modules/ngx_brotli/deps/brotli; mv "brotli-$BROTLI_REV" /usr/local/openresty/modules/ngx_brotli/deps/brotli; cd /usr/local/openresty/modules/ngx_brotli; cmake -S deps/brotli -B deps/brotli/out -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON; cmake --build deps/brotli/out -j${RESTY_J} # buildkit
# 2026-11-23 16:38:55 0.00B 定义构建参数
ARG BROTLI_SHA256=113b9685dfc14dd2f3360d077283266eec2fbdfb0fe3e5600f11be151da0d68e
# 2026-11-23 16:38:55 0.00B 定义构建参数
ARG BROTLI_REV=db24a98aed38a16de78cc05ca15cdd8dc2a0d92d
# 2026-11-23 16:38:55 0.00B 定义构建参数
ARG NGX_BROTLI_SHA256=27a4352dae4ba4922f9f013f3f0d02359aceeef2701872efa42849c3ba05457a
# 2026-11-23 16:38:55 0.00B 定义构建参数
ARG NGX_BROTLI_REV=53e0fb55f250f48fe80c0ddbf6c0f7103cdbaae1
# 2026-11-23 16:38:55 105.12MB 执行命令并创建新的镜像层
RUN |18 RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=noble RESTY_VERSION=1.31.9.1 RESTY_SHA256=71d49935bdc186dafc1f4b0a8ba44dba1bf4abc8ca52d4621f2039ec8fdcc95f RESTY_OPENSSL_VERSION=3.5.9 RESTY_OPENSSL_SHA256=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a RESTY_OPENSSL_PATCH_VERSION=3.5.5 RESTY_OPENSSL_URL_BASE=https://github.com/openssl/openssl/releases/download/openssl-3.5.9 RESTY_OPENSSL_BUILD_OPTIONS=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips RESTY_PCRE_VERSION=10.49 RESTY_PCRE_SHA256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae RESTY_PCRE_BUILD_OPTIONS=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind RESTY_LUAROCKS_VERSION=3.13.0 RESTY_LUAROCKS_SHA256=245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37 RESTY_J=4 RESTY_ADD_PACKAGE_BUILDDEPS= RESTY_ADD_PACKAGE_RUNDEPS= CONTAINER_PACKAGE_URL= /bin/bash -o pipefail -c set -eu; cd /tmp; fetch() { if [ ! -f "$1" ]; then curl -fSL --retry 3 "$2" -o "$1"; fi; printf '%s %s\n' "$3" "$1" | sha256sum --check -; }; fetch "openresty-${RESTY_VERSION}.tar.gz" "https://openresty.org/download/openresty-${RESTY_VERSION}.tar.gz" "${RESTY_SHA256}"; fetch "openssl-${RESTY_OPENSSL_VERSION}.tar.gz" "${RESTY_OPENSSL_URL_BASE}/openssl-${RESTY_OPENSSL_VERSION}.tar.gz" "${RESTY_OPENSSL_SHA256}"; fetch "pcre2-${RESTY_PCRE_VERSION}.tar.gz" "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${RESTY_PCRE_VERSION}/pcre2-${RESTY_PCRE_VERSION}.tar.gz" "${RESTY_PCRE_SHA256}"; fetch "luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz" "https://luarocks.github.io/luarocks/releases/luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz" "${RESTY_LUAROCKS_SHA256}"; tar xzf "openssl-${RESTY_OPENSSL_VERSION}.tar.gz"; cd "openssl-${RESTY_OPENSSL_VERSION}"; tar -xOf "../openresty-${RESTY_VERSION}.tar.gz" "openresty-${RESTY_VERSION}/patches/openssl-${RESTY_OPENSSL_PATCH_VERSION}-sess_set_get_cb_yield.patch" | patch -p1; ./config shared zlib -g --prefix=/usr/local/openresty/openssl3 --libdir=lib -Wl,-rpath,/usr/local/openresty/openssl3/lib ${RESTY_OPENSSL_BUILD_OPTIONS}; make -j${RESTY_J}; make install_sw; cd /tmp; tar xzf "pcre2-${RESTY_PCRE_VERSION}.tar.gz"; cd "pcre2-${RESTY_PCRE_VERSION}"; CFLAGS="-g -O3" ./configure --prefix=/usr/local/openresty/pcre2 --libdir=/usr/local/openresty/pcre2/lib ${RESTY_PCRE_BUILD_OPTIONS}; make -j${RESTY_J}; make install; cd /tmp; rm -rf "openssl-${RESTY_OPENSSL_VERSION}" "openssl-${RESTY_OPENSSL_VERSION}.tar.gz" "pcre2-${RESTY_PCRE_VERSION}" "pcre2-${RESTY_PCRE_VERSION}.tar.gz" # buildkit
# 2026-11-23 16:33:05 0.00B 复制新文件或目录到容器中
COPY tmp/ /tmp/ # buildkit
# 2026-11-23 16:33:05 619.42MB 执行命令并创建新的镜像层
RUN |18 RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=noble RESTY_VERSION=1.31.9.1 RESTY_SHA256=71d49935bdc186dafc1f4b0a8ba44dba1bf4abc8ca52d4621f2039ec8fdcc95f RESTY_OPENSSL_VERSION=3.5.9 RESTY_OPENSSL_SHA256=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a RESTY_OPENSSL_PATCH_VERSION=3.5.5 RESTY_OPENSSL_URL_BASE=https://github.com/openssl/openssl/releases/download/openssl-3.5.9 RESTY_OPENSSL_BUILD_OPTIONS=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips RESTY_PCRE_VERSION=10.49 RESTY_PCRE_SHA256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae RESTY_PCRE_BUILD_OPTIONS=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind RESTY_LUAROCKS_VERSION=3.13.0 RESTY_LUAROCKS_SHA256=245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37 RESTY_J=4 RESTY_ADD_PACKAGE_BUILDDEPS= RESTY_ADD_PACKAGE_RUNDEPS= CONTAINER_PACKAGE_URL= /bin/bash -o pipefail -c set -eu; if [ -n "${CONTAINER_PACKAGE_URL}" ]; then for source in /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources; do if [ -f "$source" ]; then sed -i -e "s|http://archive.ubuntu.com/ubuntu/|${CONTAINER_PACKAGE_URL%/}/|g" -e "s|http://security.ubuntu.com/ubuntu/|${CONTAINER_PACKAGE_URL%/}/|g" -e "s|http://ports.ubuntu.com/ubuntu-ports/|${CONTAINER_PACKAGE_URL%/}/|g" "$source"; fi; done; fi; apt-get update; apt-get install -y --no-install-recommends build-essential ca-certificates cmake curl gettext-base git libgd-dev libgeoip-dev libncurses-dev libperl-dev libreadline-dev libsqlite3-dev libxslt1-dev patch perl python3 unzip wget zlib1g-dev ${RESTY_ADD_PACKAGE_BUILDDEPS} ${RESTY_ADD_PACKAGE_RUNDEPS}; rm -rf /var/lib/apt/lists/* # buildkit
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG CONTAINER_PACKAGE_URL=
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_ADD_PACKAGE_RUNDEPS=
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_ADD_PACKAGE_BUILDDEPS=
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_J=4
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_LUAROCKS_SHA256=245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_LUAROCKS_VERSION=3.13.0
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_PCRE_BUILD_OPTIONS=--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_PCRE_SHA256=929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_PCRE_VERSION=10.49
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_OPENSSL_BUILD_OPTIONS=enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_OPENSSL_URL_BASE=https://github.com/openssl/openssl/releases/download/openssl-3.5.9
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_OPENSSL_PATCH_VERSION=3.5.5
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_OPENSSL_SHA256=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_OPENSSL_VERSION=3.5.9
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_SHA256=71d49935bdc186dafc1f4b0a8ba44dba1bf4abc8ca52d4621f2039ec8fdcc95f
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_VERSION=1.31.9.1
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_IMAGE_TAG=noble
# 2026-11-23 16:33:05 0.00B 定义构建参数
ARG RESTY_IMAGE_BASE=ubuntu
# 2026-11-23 16:33:05 0.00B
SHELL [/bin/bash -o pipefail -c]
# 2026-11-11 02:35:18 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2026-11-11 02:35:17 78.20MB
/bin/sh -c #(nop) ADD file:54dafd97985c3ec227e2c96be9290657cf2ab456885b5fc8a24c9278bca65e60 in /
# 2026-11-11 02:35:15 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.version=24.04
# 2026-11-11 02:35:15 0.00B
/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
# 2026-11-11 02:35:15 0.00B
/bin/sh -c #(nop) ARG RELEASE
镜像信息
{
"Id": "sha256:c07a83b2750b9715a1b6f0537a5770b860199a3ae968928ab6917ea523efd804",
"RepoTags": [
"1panel/openresty:1.31.9.1-2-1-noble",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/1panel/openresty:1.31.9.1-2-1-noble"
],
"RepoDigests": [
"1panel/openresty@sha256:cee31cd9ddfab18cc42ed89ca43609d0ee93b03723f2eb99ea098af78c8305ca",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/1panel/openresty@sha256:142cabbd318139819aaa72392d1eb2aba08f58b44fdaa70933adabf202ab255d"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-11-23T08:40:38.716050004Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LUA_PATH=/usr/local/openresty/site/lualib/?.lua;/usr/local/openresty/site/lualib/?/init.lua;/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua;;",
"LUA_CPATH=/usr/local/openresty/site/lualib/?.so;/usr/local/openresty/lualib/?.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so;;",
"WAF_PATH=/usr/local/openresty/1pwaf"
],
"Cmd": [
"/usr/local/openresty/bin/openresty",
"-g",
"daemon off;"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.opencontainers.image.version": "1.31.9.1-2-1-noble",
"resty_config_deps": "--with-pcre --with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include' --with-ld-opt='-L/usr/local/openresty/pcre2/lib -L/usr/local/openresty/openssl3/lib -Wl,-rpath,/usr/local/openresty/pcre2/lib:/usr/local/openresty/openssl3/lib'",
"resty_config_options": " --with-compat --without-http_rds_json_module --without-http_rds_csv_module --without-lua_rds_parser --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-http_xslt_module=dynamic --with-ipv6 --with-mail --with-mail_ssl_module --with-md5-asm --with-sha1-asm --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads",
"resty_config_options_more": "",
"resty_image_base": "ubuntu",
"resty_image_tag": "noble",
"resty_luajit_options": "--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT'",
"resty_luarocks_version": "3.13.0",
"resty_openssl_build_options": "enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-ktls enable-fips",
"resty_openssl_patch_version": "3.5.5",
"resty_openssl_version": "3.5.9",
"resty_pcre_build_options": "--enable-jit --enable-pcre2grep-jit --disable-bsr-anycrlf --disable-coverage --disable-ebcdic --disable-fuzz-support --disable-jit-sealloc --disable-never-backslash-C --enable-newline-is-lf --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-callout --enable-pcre2grep-callout-fork --disable-pcre2grep-libbz2 --disable-pcre2grep-libz --disable-pcre2test-libedit --enable-percent-zt --disable-rebuild-chartables --enable-shared --disable-static --disable-silent-rules --enable-unicode --disable-valgrind",
"resty_pcre_options": "--with-pcre-jit",
"resty_pcre_sha256": "929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae",
"resty_pcre_version": "10.49",
"resty_version": "1.31.9.1"
},
"StopSignal": "SIGQUIT",
"Shell": [
"/bin/bash",
"-o",
"pipefail",
"-c"
]
},
"Architecture": "amd64",
"Os": "linux",
"Size": 866931831,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/324d318469126752e8b163191dea7058631d4c4f37b8111e79697bc0584d2a00/diff:/var/lib/docker/overlay2/0e385a2c5be50c165bd13e44ef79f113561b6da5c5257468c7fe034acdd4aa00/diff:/var/lib/docker/overlay2/7588756307f299fffa0ae54b6c03c494491d6cef69fc193bb1427eb9ea63a3a1/diff:/var/lib/docker/overlay2/e35813159818a3d978413bfdd726a2c258cd60417691e73b3c9efa9dd385d2fb/diff:/var/lib/docker/overlay2/31847d5a8f64f1734102e6365c82ec3bb3d02befb80529100b888e9bf54093a4/diff:/var/lib/docker/overlay2/f3f567f5e7454ce43a8623359a77f5a1fad58a23a8f3c26df923f157b43ce9d7/diff:/var/lib/docker/overlay2/79e50e3455b8d14eac6c94f9fc21280ef7fa20e2d3a166c3df1b30440715808e/diff:/var/lib/docker/overlay2/56f4d05cd59401d18949362795171c9dd17acde8620d057db55a1b5edee00bd9/diff:/var/lib/docker/overlay2/a3fe0bd59ebeafa8347c246a5065a8e7b5cb8c6630484894a36c1278f68e9f0c/diff:/var/lib/docker/overlay2/ef62c50c3735ff25de47bc6cd4b776d0c4d1ca7ad3b05e508826fbab1f14c469/diff:/var/lib/docker/overlay2/9fc50be5bf79bdc69c8ed22b01e66d412fe3d11e3585e95989f6c1161b404e2b/diff:/var/lib/docker/overlay2/f7a24d0173278c20e05b5a5f03c3e95896a71c281900b8b75593edb9f293cfb3/diff:/var/lib/docker/overlay2/baef9a536af326991f00c12f5cef9b5686f79633a087bc8db6e7de72bb61996f/diff:/var/lib/docker/overlay2/f1243e99e0922e4e18ff04390104f326088255c1818f67c6f73a4a5149b72438/diff:/var/lib/docker/overlay2/4f23a2aefcdf766719791c2bafa907375f5224504d27c0bb00be3117c26dd9e9/diff",
"MergedDir": "/var/lib/docker/overlay2/ed6cd96470066a5d1e31959b176361f59b8151ce684976dc00e40f2b324f22c8/merged",
"UpperDir": "/var/lib/docker/overlay2/ed6cd96470066a5d1e31959b176361f59b8151ce684976dc00e40f2b324f22c8/diff",
"WorkDir": "/var/lib/docker/overlay2/ed6cd96470066a5d1e31959b176361f59b8151ce684976dc00e40f2b324f22c8/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:369ede38a92da8cd72a76f15f37e496def401830f3c8b7d39c0c7695682a51ce",
"sha256:a08b0c6efbf18bd3eaaac0af41cee407642186ce72143adc5309a0592215c1be",
"sha256:9dcf6059dd47e2906f7f35ca1cb41fa375eb1f6c21654aca85cbb6f8de36b783",
"sha256:3a44d5baccf78b7cbde89476fbda53c2258852ecf6f29f80cbc410f938de3ea2",
"sha256:87e5364a8f4ab210f3a59e79880139cc4a8f06bf3ee6408a57693e88fb0b6e2b",
"sha256:1d639c3f30cc68fd3ed24012f6a3ce9a1194c378be6baca63d6923623bed7811",
"sha256:7d9261742f3da39ee1e1696580128ab294bbcb637ae822a9e998b92fc18195f4",
"sha256:882b3a271b3e83cbe07791e6c4a147ff78784a4073a70e1dffacfea6b804fce2",
"sha256:7bb406da504e212f8f37cdb16d1e7bbc251d5cdeda08d1faa2e8d1ab2a4cc107",
"sha256:e189ce5fef5e88e59add72fb2411bc03a11d825337b7be11409be3db9dbfd046",
"sha256:86221df4083626b32006094778fabf0228f6953f7af3b05017fd02a642f3f150",
"sha256:26c31d30711d1eb28b7a1ff6946a21fbc3bc8039a8090433618931b07ef88a23",
"sha256:d5796a95f39805e59d42aece0c2837747f2e74e7e8081ef168e3378965213849",
"sha256:a52dd2ce70079336e24a3fc495563a7ddfdae4032e2283b34c163357905293b1",
"sha256:b0a0758dd83b8a7d60f549e156dccd6f3c8d6f8b9594c667e4350962bbcca66e",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2026-11-25T05:07:59.825733765+08:00"
}
}