Alpine Android Docker Images
Variants
There are three variants of the image, all based on bellsoft/liberica-openjdk-alpine
:
- JDK8 images are based on Liberica JDK 8u422-6 and uses the tag's suffix
-jdk8
. - JDK11 images are based on Liberica JDK 11.0.24-9 and uses the tag's suffix
-jdk11
. - JDK17 images are based on Liberica JDK 17.0.12-10 and uses the tag's suffix
-jdk17
. - JDK21 images are based on Liberica JDK 21.0.4+9 and uses the tag's suffix
-jdk21
.
Which one should I use?
JDK version | AGP version |
---|---|
8 | < 7.0.0 |
11 | >= 7.0.0 && < 8.0.0 |
17 | >= 8.0.0 |
21 | >= 8.2.1 |
Tagging
API level | JDK8 | JDK11 | JDK17 | JDK21 |
---|---|---|---|---|
Base Image | jdk8 latest-jdk8 | jdk11 , latest-jdk11 | jdk17 , latest , latest-jdk17 | jdk21 , latest-jdk21 |
Android 9.0 (28) | android-28-jdk8 | android-28 , android-28-jdk11 | android-28-jdk17 | android-28-jdk21 |
Android 10 (29) | android-29-jdk8 | android-29 , android-29-jdk11 | android-29-jdk17 | android-29-jdk21 |
Android 11 (30) | android-30-jdk8 | android-30 , android-30-jdk11 | android-30-jdk17 | android-30-jdk21 |
Android 12 (31) | android-31-jdk8 | android-31 , android-31-jdk11 | android-31-jdk17 | android-31-jdk21 |
Android 12L (32) | android-32-jdk8 | android-32 , android-32-jdk11 | android-32-jdk17 | android-32-jdk21 |
Android 13 (33) | android-33-jdk8 | android-33 , android-33-jdk11 | android-33-jdk17 | android-33-jdk21 |
Android 14 (34) | android-34-jdk8 , latest-jdk8 | android-34 , android-34-jdk11 , latest-jdk11 | android-34-jdk17 , latest , latest-jdk17 | android-34-jdk21 , latest-jdk21 |
Android 15 (35) | android-35-jdk8 | android-35 , android-35-jdk11 | android-35-jdk17 | android-35-jdk21 |
Versioning
Since January 1st 2021, new versions now include the date it was published so is possible to revert to a previous version. The versioning only applies to tags with the JDK version specified. The tag's format is: android-XX-jdkZZ-vYYYY.MM.DD
, where:
XX
is the API level.ZZ
is the version of the JDK.YYYY
is the year of the release version.MM
is the month of the year of the release version with leading zeros.DD
is the day of the month of the release version with leading zeros.
A valid example would be android-30-jdk11-v2021.01.01
. Here are listed all the versions.
:memo: Versioning is not available for
alpine-android-base
.
Content
See content of Android Base image
Path | Version | Description | Location |
---|---|---|---|
extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK | extras/google/instantapps/ |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ |
platform-tools | 35.0.1 | Android SDK Platform-Tools | platform-tools/ |
Extend from Alpine Android Base
Use the following configuration in your Dockerfile. After that, you can install any Android package available. To install an Android package, include the following line on your Dockerfile:
RUN sdkmanager <list-of-packages>
If you want to install an Alpine package available. To install an Android package, include the following line on your Dockerfile:
RUN apk add --no-cache <list-of-packages>
See content of Android 9 (Pie) image
Path | Version | Description | Location |
---|---|---|---|
build-tools;28.0.3 | 28.0.3 | Android SDK Build-Tools | build-tools/28.0.3/ |
extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK | extras/google/instantapps/ |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ |
platform-tools | 35.0.1 | Android SDK Platform-Tools | platform-tools/ |
platforms;android-28 | 6 | Android SDK Platform 28 | platforms/android-28/ |
See content of Android 10 (Q) image
Path | Version | Description | Location |
---|---|---|---|
build-tools;29.0.3 | 29.0.3 | Android SDK Build-Tools | build-tools/29.0.3/ |
extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK | extras/google/instantapps/ |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ |
platform-tools | 35.0.1 | Android SDK Platform-Tools | platform-tools/ |
platforms;android-29 | 5 | Android SDK Platform 29 | platforms/android-29/ |
See content of Android 11 (R) image
Path | Version | Description | Location |
---|---|---|---|
build-tools;30.0.3 | 30.0.3 | Android SDK Build-Tools | build-tools/30.0.3/ |
extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK | extras/google/instantapps/ |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ |
platform-tools | 35.0.1 | Android SDK Platform-Tools | platform-tools/ |
platforms;android-30 | 3 | Android SDK Platform 30 | platforms/android-30/ |
See content of Android 12 (S) image
Path | Version | Description | Location |
---|---|---|---|
build-tools;31.0.0 | 31.0.0 | Android SDK Build-Tools | build-tools/31.0.0/ |
extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK | extras/google/instantapps/ |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ |
platform-tools | 35.0.1 | Android SDK Platform-Tools | platform-tools/ |
platforms;android-31 | 1 | Android SDK Platform 31 | platforms/android-31/ |
See content of Android 12L image
Path | Version | Description | Location |
---|---|---|---|
build-tools;32.0.0 | 32.0.0 | Android SDK Build-Tools | build-tools/32.0.0/ |
extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK | extras/google/instantapps/ |
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ |
platform-tools | 35.0.1 | Android SDK Platform-Tools | platform-tools/ |
platforms;android-32 | 1 | Android SDK Platform 32 | platforms/android-32/ |
See content of Android 13 (Tiramisu) image
![Docker Android 13 JDK8