Skip to content

Commit 73a45bf

Browse files
committed
[PRMT-2531] Install rust/cargo for dojo user
rust-lang/rustup#1085
1 parent 7eeec7d commit 73a45bf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

image/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ RUN usermod -a -G docker dojo
7878
COPY etc_dojo.d/scripts/* /etc/dojo.d/scripts/
7979
COPY inputrc /etc/inputrc
8080

81-
RUN apk add rustup
82-
RUN rustup-init -y
83-
ENV PATH "$PATH:/root/.cargo/bin"
81+
RUN apk add rustup build-base
82+
ENV RUSTUP_HOME /opt/rust
83+
ENV CARGO_HOME /opt/rust
84+
RUN rustup-init -y --no-modify-path
85+
RUN ln -s /opt/rust/bin/rustup /usr/local/bin/rustup
86+
RUN ln -s /opt/rust/bin/cargo /usr/local/bin/cargo
8487
RUN rustup target add x86_64-unknown-linux-gnu
8588
RUN which cargo
8689

0 commit comments

Comments
 (0)