Add Flutter dev container configuration for mobile development

Adds a dedicated dev container under .devcontainer/mobile/ following the
monorepo multi-container pattern. Includes a multi-stage Dockerfile with
Android SDK (platform 36) and Flutter 3.29.2, a devcontainer.json with
Dart/Flutter VS Code extensions, and an on-create script that configures
Flutter for Android-only development and installs project dependencies.

https://claude.ai/code/session_013F3TXesccdf2ta5qwykPtt
This commit is contained in:
Claude
2026-01-28 22:57:00 +00:00
parent 4adc4199ee
commit 57523ad7e4
3 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{
"name": "Sure Mobile (Flutter)",
"build": {
"dockerfile": "Dockerfile",
"args": {
"USERNAME": "${localEnv:USER}${localEnv:USERNAME}"
}
},
"containerEnv": {
"SHELL": "/bin/bash"
},
"runArgs": [
"--platform",
"linux/amd64",
"--name",
"${localWorkspaceFolderBasename}_flutter_devcontainer"
],
"onCreateCommand": "bash ./.devcontainer/mobile/on-create.sh",
"remoteUser": "${localEnv:USER}${localEnv:USERNAME}",
"customizations": {
"vscode": {
"extensions": [
"Dart-Code.dart-code",
"Dart-Code.flutter"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"dart.flutterSdkPath": "/home/${localEnv:USER}${localEnv:USERNAME}/flutter"
}
}
}
}