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 \
|
RUN useradd -m -d /home/container container \
|
||||||
&& echo "container ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
&& 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
|
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 \
|
ENV USER=container \
|
||||||
HOME=/home/container \
|
HOME=/home/container \
|
||||||
CARGO_HOME=/home/container/.cargo \
|
PATH="/usr/local/cargo/bin:${PATH}"
|
||||||
PATH="/home/container/.cargo/bin:${PATH}"
|
|
||||||
|
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user