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 authored Dec 17, 2023
1 parent a9ec627 commit 1146297
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
FROM alpine:3.19.0 as build

ARG CURL_VERSION=curl-8_5_0
ARG WS_VERSION=v5.6.3-stable

WORKDIR /src
RUN apk add --no-cache ca-certificates git build-base cmake autoconf automake libtool wolfssl-dev nghttp2-dev nghttp2-static ngtcp2-dev nghttp3-dev zlib-dev zlib-static zstd-dev zstd-static brotli-dev brotli-static && \
git clone --recursive --branch "$CURL_VERSION" https://github.com/curl/curl /src && \
RUN apk add --no-cache ca-certificates git build-base cmake autoconf automake libtool nghttp2-dev nghttp2-static ngtcp2-dev nghttp3-dev zlib-dev zlib-static zstd-dev zstd-static brotli-dev brotli-static && \
\
git clone --recursive --branch "$WS_VERSION" https://github.com/wolfSSL/wolfssl /src/wolfssl && \
/src/wolfssl/autogen.sh && \
/src/wolfssl/configure --prefix=/usr --enable-curl && \

\
git clone --recursive --branch "$CURL_VERSION" https://github.com/curl/curl /src/curl && \
cd /src/curl
autoreconf -fi && \
./configure --with-wolfssl --with-nghttp2 --with-ngtcp2 --with-nghttp3 --disable-ech --enable-websockets --disable-shared --enable-static --disable-libcurl-option && \
/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)" && \
strip -s /src/src/curl
strip -s /src/curl/src/curl

FROM alpine:3.19.0
COPY --from=build /src/src/curl /usr/local/bin/curl
COPY --from=build /src/curl/src/curl /usr/local/bin/curl
RUN apk add --no-cache ca-certificates tzdata && \
curl --compressed --http3-only -sIL https://quic.nginx.org && \
mkdir -vp /host
Expand Down

0 comments on commit 1146297

Please sign in to comment.