mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 21:43:41 +00:00
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:
co-authored by
Claude Opus 4.6
parent
e36d03b5f6
commit
0cd823094b
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user