ci(android): dockerfile for reproducible APK builds#114
Merged
mickenordin merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
Mirrors Dockerfile.deb/rpm/arch. Debian 13 base, JDK 21, Node 22, pnpm, Rust with the four Android targets, pinned Android SDK cmdline-tools 11076708 / platform android-34 / build-tools 34.0.0 / NDK 27.0.12077973. Symlinks the target-prefixed ar/ranlib/strip/nm names that recent NDKs no longer ship so the vendored openssl-sys build completes. Produces a debug-signed universal APK and copies it to /out on docker run. Usage: docker build -f Dockerfile.android -t chithi-android . mkdir -p out && docker run --rm -v "$PWD/out:/out" chithi-android Verified locally: `adb install out/app-universal-debug.apk` onto a physical device installs and launches.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dockerfile.android, mirroringDockerfile.deb/Dockerfile.rpm/Dockerfile.archso APK builds are reproducible without installing the Android toolchain on the host.aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-androidtargets.11076708, platformandroid-34, build-tools34.0.0, NDK27.0.12077973.ar/ranlib/strip/nmin the NDK toolchain bin so the vendoredopenssl-sysbuild (which callsaarch64-linux-android-ranlibetc.) completes on recent NDKs that only ship the genericllvm-*names./outondocker run.Usage:
Note: building on
mainrequiressrc-tauri/gen/android/to exist. It lands with the mobile branch (#112). This Dockerfile is useful as-is against that branch; against plainmainthe build will fail until the mobile scaffold is merged.Test plan
out/app-universal-debug.apk.adb install -ronto a physical device; app launches.