Add Rust to docker build

pull/402/head
Alex Crichton 1 year ago
parent 7771f3141b
commit 25796c942e

@ -28,6 +28,9 @@ RUN curl -sSLO https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-
&& mv cmake-3.25.1-linux-x86_64 /opt/cmake && mv cmake-3.25.1-linux-x86_64 /opt/cmake
ENV PATH /opt/cmake/bin:$PATH ENV PATH /opt/cmake/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal
ENV PATH /root/.cargo/bin:$PATH
RUN groupadd -g ${GID} builder && \ RUN groupadd -g ${GID} builder && \
useradd --create-home --uid ${UID} --gid ${GID} builder useradd --create-home --uid ${UID} --gid ${GID} builder
USER builder USER builder

Loading…
Cancel
Save