Dockerfile.arm: Force cargo to use git binary.

Hopefully resolves #641.
This commit is contained in:
Daniel Valentine 2022-11-22 15:38:17 -07:00
parent c9633e1464
commit 5aee695bae

View file

@ -9,7 +9,11 @@ WORKDIR /usr/src/libreddit
COPY . .
RUN cargo install --path .
# net.git-fetch-with-cli is specified in order to prevent a potential OOM kill
# in low memory environments. See:
# https://users.rust-lang.org/t/cargo-uses-too-much-memory-being-run-in-qemu/76531
# This is tracked under issue #641.
RUN cargo install --config net.git-fetch-with-cli=true --path .
####################################################################################################
## Final image