fix: bugfix when switching features from http3-quinn to http3-s2n
This commit is contained in:
parent
0b1eb89ed1
commit
e751bd34ac
5 changed files with 17 additions and 12 deletions
|
|
@ -15,6 +15,10 @@ WORKDIR /tmp
|
|||
COPY . /tmp/
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG CARGO_FEATURES
|
||||
ENV CARGO_FEATURES ${CARGO_FEATURES}
|
||||
ARG ADDITIONAL_DEPS
|
||||
ENV ADDITIONAL_DEPS ${ADDITIONAL_DEPS}
|
||||
|
||||
RUN if [ $TARGETARCH = "amd64" ]; then \
|
||||
echo "x86_64" > /arch; \
|
||||
|
|
@ -29,13 +33,13 @@ ENV RUSTFLAGS "-C link-arg=-s"
|
|||
|
||||
RUN update-ca-certificates 2> /dev/null || true
|
||||
|
||||
RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS && \
|
||||
RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS ${ADDITIONAL_DEPS} && \
|
||||
curl -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain stable && \
|
||||
export PATH="$HOME/.cargo/bin:$PATH" && \
|
||||
echo "Install toolchain" && \
|
||||
rustup target add $(cat /arch)-unknown-linux-gnu &&\
|
||||
echo "Building rpxy from source" && \
|
||||
cargo build --release --target=$(cat /arch)-unknown-linux-gnu && \
|
||||
cargo build --release --target=$(cat /arch)-unknown-linux-gnu ${CARGO_FEATURES} && \
|
||||
strip --strip-all /tmp/target/$(cat /arch)-unknown-linux-gnu/release/rpxy &&\
|
||||
cp /tmp/target/$(cat /arch)-unknown-linux-gnu/release/rpxy /tmp/target/release/rpxy
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue