-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 使用官方 Rust 镜像作为基础镜像 | ||
FROM rust:latest | ||
|
||
# (可选)安装额外工具 | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
pkg-config \ | ||
libc6-dev \ | ||
m4 \ | ||
gcc \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# 设置工作目录 | ||
WORKDIR /workspace | ||
|
||
# (可选)设置环境变量,如果需要的话 | ||
ENV PATH="/root/.cargo/bin:${PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "Rust Environment", | ||
"context": "..", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
"extensions": [ | ||
"rust-lang.rust" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.