From 253be7c0e9458a1df54b851970d0d59d4fa29029 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 17 Dec 2023 14:54:43 +0100 Subject: [PATCH] Update Dockerfile Signed-off-by: Zoey --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5093516..434fa0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM alpine:3.19.0 as build ARG CURL_VERSION=curl-8_5_0 ARG WS_VERSION=v5.6.4-stable -RUN apk add --no-cache ca-certificates git build-base cmake autoconf automake coreutils libtool nghttp2-dev nghttp2-static zlib-dev zlib-static zstd-dev zstd-static brotli-dev brotli-static && \ +RUN apk add --no-cache ca-certificates git build-base cmake autoconf automake coreutils libtool \ + nghttp2-dev nghttp2-static zlib-dev zlib-static zstd-dev zstd-static brotli-dev brotli-static libssh2-dev libssh2-static && \ \ git clone --recursive --branch "$WS_VERSION" https://github.com/wolfSSL/wolfssl /src/wolfssl && \ cd /src/wolfssl && \ @@ -29,8 +30,8 @@ RUN apk add --no-cache ca-certificates git build-base cmake autoconf automake co git clone --recursive --branch "$CURL_VERSION" https://github.com/curl/curl /src/curl && \ cd /src/curl && \ autoreconf -fi && \ - /src/curl/configure --with-wolfssl --with-nghttp2 --with-ngtcp2 --with-nghttp3 --disable-ech --enable-websockets --disable-shared --enable-static --disable-libcurl-option && \ - make -j "$(nproc)" && \ + /src/curl/configure LDFLAGS="-static" PKG_CONFIG="pkg-config --static" --with-wolfssl --with-nghttp2 --with-ngtcp2 --with-nghttp3 --disable-ech --enable-websockets --disable-shared --enable-static --disable-libcurl-option && \ + make -j "$(nproc)" LDFLAGS="-static -all-static" && \ strip -s /src/curl/src/curl FROM alpine:3.19.0