Skip to content

Commit c81846d

Browse files
committed
docker: bump openssl to 3.4.1
1 parent 361dc7e commit c81846d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Dockerfile

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM ubuntu:latest as smartdns-builder
1+
FROM ubuntu:latest AS smartdns-builder
22
LABEL previous-stage=smartdns-builder
33

44
# prepare builder
5-
ARG OPENSSL_VER=3.0.16
5+
ARG OPENSSL_VER=3.4.1
66
RUN apt update && \
77
apt install -y binutils perl curl make musl-tools musl-dev && \
88
ln -s /usr/include/linux /usr/include/$(uname -m)-linux-musl && \
@@ -13,11 +13,18 @@ RUN apt update && \
1313
cd /build/openssl && \
1414
curl -sSL https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VER}/openssl-${OPENSSL_VER}.tar.gz | tar --strip-components=1 -zxv && \
1515
\
16+
OPENSSL_OPTIONS="no-argon2 no-aria no-async no-bf no-blake2 no-camellia no-cmp no-cms " \
17+
OPENSSL_OPTIONS="$OPENSSL_OPTIONS no-comp no-des no-dh no-dsa no-ec2m no-engine no-gost "\
18+
OPENSSL_OPTIONS="$OPENSSL_OPTIONS no-http no-idea no-legacy no-md4 no-mdc2 no-multiblock "\
19+
OPENSSL_OPTIONS="$OPENSSL_OPTIONS no-nextprotoneg no-ocb no-ocsp no-rc2 no-rc4 no-rmd160 "\
20+
OPENSSL_OPTIONS="$OPENSSL_OPTIONS no-scrypt no-seed no-siphash no-siv no-sm2 no-sm3 no-sm4 "\
21+
OPENSSL_OPTIONS="$OPENSSL_OPTIONS no-srp no-srtp no-ts no-whirlpool no-apps no-ssl-trace "\
22+
OPENSSL_OPTIONS="$OPENSSL_OPTIONS no-ssl no-ssl3 no-tests -Os" \
1623
export CC=musl-gcc && \
1724
if [ "$(uname -m)" = "aarch64" ]; then \
18-
./config --prefix=/opt/build no-tests -mno-outline-atomics ; \
25+
./config --prefix=/opt/build $OPENSSL_OPTIONS -mno-outline-atomics ; \
1926
else \
20-
./config --prefix=/opt/build no-tests ; \
27+
./config --prefix=/opt/build $OPENSSL_OPTIONS ; \
2128
fi && \
2229
make all -j8 && make install_sw && \
2330
cd / && rm -rf /build

0 commit comments

Comments
 (0)