From fdd84f84a585ad96b39b5af53e95b1b089e116f7 Mon Sep 17 00:00:00 2001 From: Dhruwang Date: Wed, 30 Apr 2025 10:41:23 +0530 Subject: [PATCH] fix build --- apps/web/Dockerfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index b729862d90..3c3ddcf94c 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -21,10 +21,11 @@ FROM base AS installer RUN npm install -g corepack@latest RUN corepack enable -# Install necessary build tools and compilers +# Install necessary build tools and compilers with all wget dependencies RUN apk update && apk add --no-cache cmake g++ gcc jq make openssl-dev python3 \ - # Add build dependencies for libxml2 and OpenSSL - build-base wget tar xz automake autoconf libtool pkgconfig zlib-dev perl linux-headers + build-base wget tar xz automake autoconf libtool pkgconfig zlib-dev perl linux-headers \ + # Add these specific dependencies for wget + pcre2 libidn2 zlib # Install OpenSSL 3.5.0 from source RUN cd /tmp && \ @@ -39,14 +40,9 @@ RUN cd /tmp && \ echo "/usr/local/ssl/lib64" > /etc/ld-musl-x86_64.path && \ echo "/usr/local/ssl/lib" >> /etc/ld-musl-x86_64.path -# Create symlinks for OpenSSL binaries and libraries -RUN ln -sf /usr/local/ssl/bin/openssl /usr/bin/openssl && \ - ln -sf /usr/local/ssl/lib/libssl.so.3 /usr/lib/libssl.so.3 && \ - ln -sf /usr/local/ssl/lib/libcrypto.so.3 /usr/lib/libcrypto.so.3 - -# Install libxml2 2.14.1 from source +# Alternative approach: use curl instead of wget for libxml2 download RUN cd /tmp && \ - wget --no-check-certificate https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.1.tar.xz && \ + curl -k -L -o libxml2-2.14.1.tar.xz https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.1.tar.xz && \ tar -xf libxml2-2.14.1.tar.xz && \ cd libxml2-2.14.1 && \ ./configure --prefix=/usr --without-python --without-lzma && \