Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 committed Dec 17, 2023
1 parent 13dcb12 commit 253be7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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
Expand Down

0 comments on commit 253be7c

Please sign in to comment.