diff --git a/custom/packaging/centosstream-9.Dockerfile b/custom/packaging/centosstream-9.Dockerfile index 3027b37..788be2e 100644 --- a/custom/packaging/centosstream-9.Dockerfile +++ b/custom/packaging/centosstream-9.Dockerfile @@ -7,7 +7,9 @@ RUN yum update -y \ && yum install -y --allowerasing curl \ && python3 -m pip install awscli -ENV PATH="/root/.cargo/bin:$PATH" +RUN export RUSTUP_HOME=/opt/rust \ + && export CARGO_HOME=/opt/rust \ + && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path \ +RUN for fname in $(ls /opt/rust/bin); do echo -e '#!/bin/sh\n\nRUSTUP_HOME=/opt/rust exec /opt/rust/bin/${0##*/} "$@"' > /usr/bin/$fname; chmod +x /usr/bin/$fname; done \ && rustc --version diff --git a/custom/packaging/debian-11.Dockerfile b/custom/packaging/debian-11.Dockerfile index 23d97d0..353995d 100644 --- a/custom/packaging/debian-11.Dockerfile +++ b/custom/packaging/debian-11.Dockerfile @@ -6,7 +6,9 @@ RUN apt update -y \ && apt install -y apt-utils gnupg jq awscli python3 python3-venv python3-pip \ build-essential devscripts debhelper bash-completion git patchelf curl -ENV PATH="/root/.cargo/bin:$PATH" +RUN export RUSTUP_HOME=/opt/rust \ + && export CARGO_HOME=/opt/rust \ + && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path \ +RUN for fname in $(ls /opt/rust/bin); do echo -e '#!/bin/sh\n\nRUSTUP_HOME=/opt/rust exec /opt/rust/bin/${0##*/} "$@"' > /usr/bin/$fname; chmod +x /usr/bin/$fname; done \ && rustc --version