Skip to content

Commit b822105

Browse files
Properly setup rustup in dev container
1 parent 53ea43a commit b822105

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.devcontainer/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ RUN apt-get -y install cpp-10 gcc-10 g++-10
6767
# clang
6868
RUN apt-get -y install clang-12 llvm-12
6969
# rust
70-
RUN ./install-rust.sh
7170
ENV PATH "/root/.cargo/bin:$PATH"
7271

7372
# clang by default

.devcontainer/devcontainer.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"APT_MIRROR": "${localEnv:APT_MIRROR}"
99
}
1010
},
11+
"onCreateCommand": "./install-rust.sh",
1112
// The optional 'runArgs' property can be used to specify additional runtime arguments.
1213
"runArgs": [
1314
// Uncomment the line if you will use a ptrace-based debugger like C++, Go, and Rust.

0 commit comments

Comments
 (0)