- Add .devcontainer/ci.Dockerfile: bakes Flutter, JDK 17, Android SDK, and flutter precache --android into a single Docker image (~2GB, built once) - ci.yml: build-android uses kryz-ci:latest container — removes 8 redundant SDK download steps (Java 17, Flutter, Android SDK, precache, licenses) that account for ~35-40 min of the 40-min container spin-up time - release.yml: build-android uses kryz-ci:latest container — same reduction from 13 steps to 8. Also fixes hardcoded 'token ***' -> '$GITEA_TOKEN' - devcontainer.json: simplified postCreateCommand (removed venv, pip, claude) and cleaned up invalid JSON (comments, empty mounts array) Estimated impact: 40min -> 5-10min first run (with pre-built image), ~2-3min subsequent runs (Docker layer caching)
20 lines
429 B
JSON
Executable File
20 lines
429 B
JSON
Executable File
{
|
|
"name": "kryz-go",
|
|
"build": {
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-vscode.vscode-typescript-next",
|
|
"dart-code.flutter"
|
|
]
|
|
}
|
|
},
|
|
"postCreateCommand": "flutter pub get",
|
|
"containerEnv": {
|
|
"ANTHROPIC_BASE_URL": "http://192.168.1.108:1234",
|
|
"ANTHROPIC_API_KEY": "lmstudio",
|
|
"ANTHROPIC_BASE_MODEL": "qwen/qwen3.6-27b"
|
|
}
|
|
} |