Docker image for Android development.
NB: While building the image, it automatically accepts the related Android SDK licenses.
You can build another image on top of this one (e.g., a Jenkins CI server) by using multi-stage builds in your Dockerfile like:
FROM xmartlabs/android AS android
FROM other-image
ENV ANDROID_HOME /opt/android-sdk-linux
COPY --from=android ${ANDROID_HOME} ${ANDROID_HOME}
COPY --from=android /usr/lib/jvm/java-8-oracle /usr/lib/jvm/java-8-oracle
COPY --from=android /usr/bin/gradle /usr/bin/gradle
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools