From 5ea32002d2a4fbfaa3be4975f42d8934316590a3 Mon Sep 17 00:00:00 2001 From: ArtEngr Date: Fri, 7 Feb 2025 16:05:38 +0800 Subject: [PATCH 1/2] add new Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新基础镜像,并且使用多层构建,减小运行镜像的体积大小 --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..09310e0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM rockylinux/rockylinux:9 as builder +# 设置时区与语言环境变量 +#ENV TIME_ZONE=Asia/Shanghai +#RUN echo "${TIME_ZONE}" > /etc/timezone && ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime +WORKDIR /app + +ADD . /app +RUN yum install gcc file autoconf automake make libtool git openssl-devel zlib-devel -y && rm -rf /var/cache/yum +RUN sh build.sh && make build + +FROM rockylinux/rockylinux:9 +# 设置时区与语言环境变量 +#ENV TIME_ZONE=Asia/Shanghai +#RUN echo "${TIME_ZONE}" > /etc/timezone && ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime +COPY --from=builder /app/ /app +WORKDIR /app +ENTRYPOINT ["./cfadmin"] From f66a8193f7bf9f35f1d01e61c33e098a9a68fed1 Mon Sep 17 00:00:00 2001 From: ArtEngr Date: Fri, 9 May 2025 16:03:47 +0800 Subject: [PATCH 2/2] Update httpc init.lua add patch=true --- lualib/httpc/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/httpc/init.lua b/lualib/httpc/init.lua index b255ae8..67a2de8 100644 --- a/lualib/httpc/init.lua +++ b/lualib/httpc/init.lua @@ -30,7 +30,7 @@ local tinsert = table.insert local __TIMEOUT__ = 15 -local methods = { get = true, post = true, put = true, delete = true, xml = true, json = true, file = true} +local methods = { get = true, post = true, put = true, delete = true, xml = true, json = true, file = true, patch = true} local function http_requese(sock, opt, req, parameter) local ok, err