Skip to content

Commit

Permalink
fix(docker): set flag for fetching dependencies via CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Mar 10, 2023
1 parent ca051d4 commit fdda8a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN cargo chef prepare --recipe-path recipe.json

FROM chef AS builder
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
COPY . .
RUN cargo build --release --locked \
Expand Down

0 comments on commit fdda8a1

Please sign in to comment.