Update Dockerfiles: use CMake build and pcre2-dev

The alpine Dockerfile still used autotools (autogen.sh/configure) which
were removed. Switch to cmake build and replace pcre-dev with pcre2-dev.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Max Lv
2026-02-07 16:43:27 +08:00
co-authored by Claude Opus 4.6
parent e36d03b5f6
commit 0cd823094b
2 changed files with 6 additions and 7 deletions
+5 -6
View File
@@ -14,21 +14,20 @@ COPY . /tmp/repo
RUN set -x \
# Build environment setup
&& apk add --no-cache --virtual .build-deps \
autoconf \
automake \
build-base \
cmake \
c-ares-dev \
libcap \
libev-dev \
libtool \
libsodium-dev \
linux-headers \
mbedtls-dev \
pcre-dev \
pcre2-dev \
# Build & install
&& cd /tmp/repo \
&& ./autogen.sh \
&& ./configure --prefix=/usr/local --disable-documentation \
&& git submodule update --init --recursive || true \
&& mkdir -p build && cd build \
&& cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_DOC=OFF -DCMAKE_BUILD_TYPE=Release \
&& make -j$(getconf _NPROCESSORS_ONLN) \
&& make install \
&& cd /usr/local/bin \
+1 -1
View File
@@ -5,4 +5,4 @@ MAINTAINER wener <wenermail@gmail.com>
# Better for cache and dev
RUN apk add --no-cache --virtual .build-deps \
alpine-sdk cmake \
linux-headers libev-dev libsodium-dev mbedtls-static mbedtls-dev pcre-dev udns-dev
linux-headers libev-dev libsodium-dev mbedtls-static mbedtls-dev pcre2-dev udns-dev