exifcleaner-web/docker/android-builder
forgejo_admin 9c99c0b43c
All checks were successful
CI / Lint, Typecheck & Unit Tests (push) Successful in 29s
CI / E2E (Standalone single-file) (push) Successful in 1m13s
CI / E2E (Web) (push) Successful in 2m12s
feat(android-local): vendored Docker build for APK with no host SDK (#163)
Adds a self-contained local APK build path. Only Docker is required on the host — no JDK, no Android SDK, no Node. Mirrors .github/workflows/build-android.yml inside a vendored image so anyone who clones the repo can build the APK with one command.

- docker/android-builder/Dockerfile — node:22-bookworm-slim (pinned by digest) + Temurin JDK 21 + Android SDK 35 + build-tools 35.0.0 and 34.0.0 (AGP 8.7.x's silent internal minimum). JAVA_HOME symlinked via dpkg --print-architecture so the image works on amd64 and arm64.
- scripts/build-apk-local.sh — orchestrator that builds the image on first run, then runs the container as the host uid:gid with the repo bind-mounted and three repo-local cache dirs. Uses --network host (Docker Desktop 4.34+ on macOS/Windows) to dodge a default-bridge apt-download failure.
- docs/android-apk.md — splits Prerequisites into Docker (Path A, recommended) and Native (Path B), adds a Local Docker build section.
- .gitignore — adds .docker-cache/.
2026-05-20 19:10:27 +04:00
..
Dockerfile feat(android-local): vendored Docker build for APK with no host SDK (#163) 2026-05-20 19:10:27 +04:00