forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
21 lines (21 loc) · 801 Bytes
/
devcontainer.json
File metadata and controls
21 lines (21 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
// The mcr base container includes node and pnpm.
// Flutter is installed in the container during creation.
"name": "Flutter documentation website development",
"image": "mcr.microsoft.com/devcontainers/javascript-node:latest",
"forwardPorts": [4000],
"containerUser": "node",
"containerEnv": {
"FLUTTER_ROOT": "/home/node/flutter"
},
"remoteEnv": {
"PATH": "${containerEnv:PATH}:${containerEnv:FLUTTER_ROOT}/bin"
},
"onCreateCommand": "git clone --branch=stable https://github.com/flutter/flutter.git ${FLUTTER_ROOT} && ${FLUTTER_ROOT}/bin/flutter doctor",
"postCreateCommand": "git submodule update --init --recursive && flutter pub get && corepack install && pnpm install",
"customizations": {
"vscode": {
"extensions": ["Dart-Code.dart-code", "Dart-Code.flutter"]
}
}
}