1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Set CARGO_HTTP_MULTIPLEXING=false to work around 'cargo build' network failures when building the Docker image on CI environments.

This commit is contained in:
Ximon Eighteen
2021-09-16 15:11:44 +02:00
parent f89b2a87b3
commit aef1a7e403

View File

@ -9,7 +9,11 @@ RUN apk add rust cargo
WORKDIR /tmp/routinator WORKDIR /tmp/routinator
COPY . . COPY . .
RUN cargo build \ # Force Cargo to use HTTP/1.1 without pipelining instead of HTTP/2 with
# multiplexing. This seems to help with various "spurious network error"
# warnings when Cargo attempts to fetch from crates.io when building this
# image on Docker Hub and GitHub Actions build machines.
RUN CARGO_HTTP_MULTIPLEXING=false cargo build \
--target x86_64-alpine-linux-musl \ --target x86_64-alpine-linux-musl \
--release \ --release \
--locked --locked