From a71c0724db3dc67b5b3f021cad9c61488eb53662 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Mon, 11 Dec 2023 17:09:04 -0800 Subject: [PATCH] docker: install rust toolchain for stage1 builds Signed-off-by: Davide Cavalca --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ae454fb7..03d15ae3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM debian:buster-slim ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && apt-get install -y build-essential bash git locales gcc-aarch64-linux-gnu libc6-dev-arm64-cross device-tree-compiler \ +RUN apt-get update && apt-get install -y build-essential bash curl git locales gcc-aarch64-linux-gnu libc6-dev-arm64-cross device-tree-compiler \ && rm -rf /var/lib/apt/lists/* \ && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 + +RUN curl -s https://sh.rustup.rs | bash -s -- -y --target aarch64-unknown-none-softfloat + ENV LANG en_US.utf8 +ENV PATH "/root/.cargo/bin:${PATH}" WORKDIR /m1n1 COPY . .