Skip to content

Commit

Permalink
docker: install rust toolchain for stage1 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Cavalca <dcavalca@fedoraproject.org>
  • Loading branch information
davide125 authored and marcan committed Sep 24, 2024
1 parent 58fe1d7 commit a71c072
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .
Expand Down

0 comments on commit a71c072

Please sign in to comment.