From 082309f33851a38c7e1658967c00268b0722e1ab Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 31 Mar 2024 11:50:48 -0700 Subject: [PATCH] Put rust in a different location in docker --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f03604b..ca61db0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,8 @@ RUN curl -sSLO https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake- && mv cmake-3.25.1-linux-x86_64 /opt/cmake ENV PATH /opt/cmake/bin:$PATH +ENV RUSTUP_HOME=/rust/rustup CARGO_HOME=/rust/cargo PATH=$PATH:/rust/cargo/bin RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal -ENV PATH /root/.cargo/bin:$PATH RUN groupadd -g ${GID} builder && \ useradd --create-home --uid ${UID} --gid ${GID} builder