Update rust/latest/Dockerfile
Some checks failed
build rust / yolks:rust_1.56 (push) Has been cancelled
build rust / yolks:rust_latest (push) Has been cancelled
build rust / yolks:rust_1.60 (push) Has been cancelled

This commit is contained in:
2025-09-15 18:35:53 +02:00
parent 3a62cda3ae
commit f83e636cf8

View File

@@ -18,13 +18,15 @@ RUN apt update && apt -y install \
RUN useradd -m -d /home/container container \
&& echo "container ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER container
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --profile minimal --component rust-src
ENV CARGO_HOME=/usr/local/cargo
ENV PATH="/usr/local/cargo/bin:${PATH}"
USER container
ENV USER=container \
HOME=/home/container \
CARGO_HOME=/home/container/.cargo \
PATH="/home/container/.cargo/bin:${PATH}"
PATH="/usr/local/cargo/bin:${PATH}"
WORKDIR /home/container