This is an automated email from the ASF dual-hosted git repository.

shreemaan-abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c12a32  fix: repair the local source-code image build (#634)
0c12a32 is described below

commit 0c12a321f401402686481d0d45ef101e6a68a8fe
Author: Shreemaan Abhishek <[email protected]>
AuthorDate: Tue Sep 29 17:20:52 2026 +0800

    fix: repair the local source-code image build (#634)
---
 debian-dev/Dockerfile.local | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian-dev/Dockerfile.local b/debian-dev/Dockerfile.local
index 041a62d..1870844 100644
--- a/debian-dev/Dockerfile.local
+++ b/debian-dev/Dockerfile.local
@@ -17,7 +17,7 @@
 
 # Use this dockerfile to create a docker image of your apisix local/patched 
codebase
 
-FROM debian:bullseye-slim AS build
+FROM debian:bookworm-slim AS build
 
 ARG ENABLE_PROXY=false
 ARG CODE_PATH
@@ -37,6 +37,7 @@ RUN set -x \
         g++ \
         git  \
         sudo \
+        xz-utils \
         libyaml-dev \
     && ls -al \
     && make deps \
@@ -44,7 +45,7 @@ RUN set -x \
     && cp -r deps ${ENV_INST_LUADIR} \
     && make install
 
-FROM debian:bullseye-slim
+FROM debian:bookworm-slim
 
 ARG ENTRYPOINT_PATH=./docker-entrypoint.sh
 ARG INSTALL_BROTLI=./install-brotli.sh
@@ -58,6 +59,12 @@ COPY ${INSTALL_BROTLI} /install-brotli.sh
 RUN chmod +x /install-brotli.sh \  
     && cd / && ./install-brotli.sh && rm -rf /install-brotli.sh
 
+# rex_pcre.so, built by `make deps` in the build stage, links against libpcre3.
+# Installed after install-brotli.sh so its purge cannot take it away again.
+RUN apt-get -qy update \
+    && apt-get install -y --no-install-recommends libpcre3 \
+    && rm -rf /var/lib/apt/lists/*
+
 ENV 
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
 
 WORKDIR /usr/local/apisix

Reply via email to