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:
@ -9,7 +9,11 @@ RUN apk add rust cargo
|
||||
WORKDIR /tmp/routinator
|
||||
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 \
|
||||
--release \
|
||||
--locked
|
||||
|
Reference in New Issue
Block a user