diff --git a/Dockerfile b/Dockerfile index ec5808ff5e..de7c897f48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,11 @@ RUN cargo chef prepare --recipe-path recipe.json FROM lukemathwalker/cargo-chef:0.1.35-rust-1.60-slim-buster as cacher WORKDIR app +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + --allow-unauthenticated git COPY --from=planner /app/recipe.json recipe.json +ENV CARGO_NET_GIT_FETCH_WITH_CLI=true RUN cargo chef cook --release --recipe-path recipe.json FROM rust:1.60.0-slim-buster as builder