Skip to content

Commit 206b7eb

Browse files
committed
fix: add rust to shell
1 parent 9280dd4 commit 206b7eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

focal-arm64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN npm install -g npm@latest node-gyp yarn
5555

5656
# Rust
5757
RUN curl https://sh.rustup.rs -sSf | sudo -E bash -s -- -y
58-
RUN echo '. "$HOME/.cargo/env"' >> ~/.bashrc
58+
RUN echo '. "$HOME/.cargo/env"' > /etc/profile.d/cargo-env.sh
5959

6060
# Install docker client
6161
RUN sudo mkdir -m 0755 -p /etc/apt/keyrings

focal-armhf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN npm install -g npm@latest node-gyp yarn
5555

5656
# Rust
5757
RUN curl https://sh.rustup.rs -sSf | sudo -E bash -s -- -y
58-
RUN echo '. "$HOME/.cargo/env"' >> ~/.bashrc
58+
RUN echo '. "$HOME/.cargo/env"' > /etc/profile.d/cargo-env.sh
5959

6060
# Install docker client
6161
RUN sudo mkdir -m 0755 -p /etc/apt/keyrings

focal-x64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RUN python --version
8080

8181
# Rust
8282
RUN curl https://sh.rustup.rs -sSf | sudo -E bash -s -- -y
83-
RUN echo '. "$HOME/.cargo/env"' >> ~/.bashrc
83+
RUN echo '. "$HOME/.cargo/env"' > /etc/profile.d/cargo-env.sh
8484

8585
# Install docker client
8686
RUN sudo mkdir -m 0755 -p /etc/apt/keyrings

0 commit comments

Comments
 (0)