perf: optimize container startup and CI pipeline
CI / Test (pull_request) Failing after 11s
CI / Build Android (pull_request) Skipped
CI / Build iOS (pull_request) Skipped
CI / Lint (pull_request) Successful in 19m44s

- Dockerfile: use Flutter tarball instead of git clone (~150MB vs 500MB+)
- Dockerfile: split into independent layers for better caching
- Dockerfile: use JRE instead of JDK, remove unnecessary packages
- devcontainer.json: remove venv/pip/claude from postCreateCommand
- ci.yml: remove redundant analyze/test in build-android job
- ci.yml: run lint and test in parallel (no dependency chain)

Estimated impact: 40min -> ~5-8min first build, ~2-3min cached
This commit is contained in:
robot committed 2026-08-02 22:00:06 +00:00
1 parent 7747ea194c
commit 07d5290b67
3 files changed
+56 -33

No files matched your search

+1 -2
View File
@@ -14,8 +14,7 @@
]
}
},
"postCreateCommand": "flutter pub get && python3 -m venv .venv && . .venv/bin/activate && pip install --upgrade pip && pip install -r requirements.txt && curl -fsSL https://claude.ai/install.sh | bash",
"postStartCommand": ".venv/bin/activate",
"postCreateCommand": "flutter pub get",
"containerEnv": {
"ANTHROPIC_BASE_URL": "http://192.168.1.108:1234",
"ANTHROPIC_API_KEY": "lmstudio",