[SOLVED]: error: can't find Rust compiler

 error: can't find Rust compiler:

You need to install a rust compiler. See https://www.rust-lang.org/tools/install. You can modify the installation instructions for a docker image like this.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

PATH="/root/.cargo/bin:${PATH}"