Dockerfile.arm: Add git to builder.

This commit is contained in:
Daniel Valentine 2022-11-22 15:42:10 -07:00
parent 5aee695bae
commit ab39b62533

View file

@ -3,7 +3,7 @@
#################################################################################################### ####################################################################################################
FROM rust:alpine AS builder FROM rust:alpine AS builder
RUN apk add --no-cache g++ RUN apk add --no-cache g++ git
WORKDIR /usr/src/libreddit WORKDIR /usr/src/libreddit
@ -12,7 +12,8 @@ COPY . .
# net.git-fetch-with-cli is specified in order to prevent a potential OOM kill # net.git-fetch-with-cli is specified in order to prevent a potential OOM kill
# in low memory environments. See: # in low memory environments. See:
# https://users.rust-lang.org/t/cargo-uses-too-much-memory-being-run-in-qemu/76531 # https://users.rust-lang.org/t/cargo-uses-too-much-memory-being-run-in-qemu/76531
# This is tracked under issue #641. # This is tracked under issue #641. This also requires us to install git in the
# builder.
RUN cargo install --config net.git-fetch-with-cli=true --path . RUN cargo install --config net.git-fetch-with-cli=true --path .
#################################################################################################### ####################################################################################################