Skip to content

Commit

Permalink
update alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 committed Dec 16, 2023
1 parent 1d14f4c commit 73c0b38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ FROM rust:1.74.1-alpine3.18 as build
ARG QUICHE_VERSION=0.20.0
ARG CURL_VERSION=curl-8_5_0

WORKDIR /src
ARG CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

RUN sed -i "s|v3.18|v3.19|g" /etc/apk/repositories && \
apk add --no-cache --upgrade apk-tools && \
apk upgrade --available && \
sync

RUN apk add --no-cache ca-certificates git build-base cmake autoconf automake libtool nghttp2-dev nghttp2-static zlib-dev zlib-static && \
git clone --recursive --branch "$QUICHE_VERSION" https://github.com/cloudflare/quiche /src/quiche && \
cd /src/quiche && \
CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --package quiche --release --features ffi,pkg-config-meta,qlog && \
cargo build --package quiche --release --features ffi,pkg-config-meta,qlog && \
mkdir -vp /src/quiche/quiche/deps/boringssl/src/lib && \
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib && \
git clone --recursive --branch "$CURL_VERSION" https://github.com/curl/curl /src/curl && \
Expand Down

0 comments on commit 73c0b38

Please sign in to comment.