You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCKER.MD
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,16 @@ To ensure all developers use a consistent environment, especially for cross-plat
5
5
1. Build the Docker Image
6
6
7
7
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
9
8
9
+
```bash
10
10
docker build -t betaflight-tauri-dev .
11
+
```
11
12
12
13
2. Run the Development Container
13
14
14
15
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
16
16
17
+
```bash
17
18
docker run -it --rm \
18
19
-v $(pwd):/app \
19
20
--name betaflight-dev-container \
@@ -24,6 +25,7 @@ docker run -it --rm \
24
25
--rm: Automatically removes the container when you exit.
25
26
26
27
-v $(pwd):/app: Mounts your current directory (the project root) to the /app working directory in the container.
0 commit comments