Update rust/latest/Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user