android-build
Android build image: OpenJDK 21, Ruby 3.0, Fastlane 2.228, Android SDK 12 (API 36) on Ubuntu 22.04
3.4K
This Docker image is designed for building Android applications, particularly in CI/CD environments like GitLab CI. It includes pre-installed dependencies to avoid repeated installations of Android SDK, Fastlane, Ruby, and other tools during builds. Based on Ubuntu 22.04 with OpenJDK 21.
docker pull ustinovtikhon/android-build:openjdk21-ruby3-fastlane2.228-androidsdk12
Replace your existing image with this one and simplify before_script (no need for SDK installation):
.common_android_build:
image: ustinovtikhon/android-build:openjdk21-ruby3-fastlane2.228-androidsdk12
tags:
- common-tasks
- docker
stage: build
when: manual
cache:
# Keep your caches as is
...
script:
- fastlane $LANE
artifacts:
# As in your original YAML
...
Run a container:
docker run -it -v $(pwd):/app ustinovtikhon/android-build:openjdk21-ruby3-fastlane2.228-androidsdk12 bash
Inside, you can run fastlane, sdkmanager, or Gradle commands directly.
ANDROID_HOME: /opt/android-sdkPATH: Includes SDK bins and gem binsGEM_HOME: /opt/gemIf you need to customize, use the following Dockerfile as a base:
# (Paste the full Dockerfile from our previous discussion here)
For issues or contributions, contact via Docker Hub or GitHub.
Content type
Image
Digest
sha256:2468ad630…
Size
918.6 MB
Last updated
6 months ago
docker pull ustinovtikhon/android-build