From 70beb21e285a213ab07dd5302d2da6ef168874a3 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Tue, 23 Apr 2024 20:08:30 -0400 Subject: [PATCH] Fix Rust build on rootless (inaccessible binaries) --- languages/rust.dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/languages/rust.dockerfile b/languages/rust.dockerfile index 0932226..cad54e2 100644 --- a/languages/rust.dockerfile +++ b/languages/rust.dockerfile @@ -1,3 +1,8 @@ FROM ghcr.io/steamdeckhomebrew/holo-base:latest -RUN pacman -Sy --noconfirm rustup && rustup install stable \ No newline at end of file +ENV RUSTUP_HOME=/.rustup +ENV CARGO_HOME=/.cargo + +RUN mkdir /.rustup && chmod -R 777 /.rustup +RUN mkdir /.cargo && chmod -R 777 /.cargo +RUN pacman -Sy --noconfirm rustup && rustup install stable