Skip to content

Commit

Permalink
[PRMT-2531] Install rust/cargo for dojo user
Browse files Browse the repository at this point in the history
  • Loading branch information
danmoorenhs committed Feb 28, 2022
1 parent 7eeec7d commit 73a45bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ RUN usermod -a -G docker dojo
COPY etc_dojo.d/scripts/* /etc/dojo.d/scripts/
COPY inputrc /etc/inputrc

RUN apk add rustup
RUN rustup-init -y
ENV PATH "$PATH:/root/.cargo/bin"
RUN apk add rustup build-base
ENV RUSTUP_HOME /opt/rust
ENV CARGO_HOME /opt/rust
RUN rustup-init -y --no-modify-path
RUN ln -s /opt/rust/bin/rustup /usr/local/bin/rustup
RUN ln -s /opt/rust/bin/cargo /usr/local/bin/cargo
RUN rustup target add x86_64-unknown-linux-gnu
RUN which cargo

Expand Down

0 comments on commit 73a45bf

Please sign in to comment.