Skip to content

Commit f151b51

Browse files
committed
Update DOCKER.MD
1 parent 4902890 commit f151b51

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

DOCKER.MD

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
🐳 Development Environment with Docker
1+
# 🐳 Development Environment with Docker
22

33
To ensure all developers use a consistent environment, especially for cross-platform compilation (Rust, Node.js, Android SDK/NDK), we provide a Dockerfile.
44

5-
1. Build the Docker Image
5+
## 1. Build the Docker Image
66

77
Build the container image from the Dockerfile in the project root. This process will download all system dependencies, the Rust toolchain, and the Android SDK/NDK.
8-
Bash
98

10-
docker build -t betaflight-tauri-dev .
9+
```bash
10+
docker build -t betaflight-tauri-dev .
11+
```
1112

12-
2. Run the Development Container
13+
## 2. Run the Development Container
1314

1415
Run the image and mount your local project directory into the container's /app directory. This allows you to work on your code locally while running all build commands inside the isolated Docker environment.
15-
Bash
1616

17-
docker run -it --rm \
17+
```bash
18+
docker run -it --rm \
1819
-v $(pwd):/app \
1920
--name betaflight-dev-container \
2021
betaflight-tauri-dev
@@ -24,8 +25,9 @@ docker run -it --rm \
2425
--rm: Automatically removes the container when you exit.
2526

2627
-v $(pwd):/app: Mounts your current directory (the project root) to the /app working directory in the container.
28+
```
2729

28-
3. Execute Build/Dev Commands
30+
## 3. Execute Build/Dev Commands
2931

3032
Once inside the container's terminal, you can run any of the Tauri commands without needing to worry about local prerequisites.
3133

0 commit comments

Comments
 (0)