Public Repository

Last pushed: 2 months ago
Short Description
Image for building Android apps, which is using the new SdkManager. New: Now with NDK integration
Full Description

FROM openjdk:8-jdk
MAINTAINER Christopher Schott christopher.2.schott@continental-corporation.com

ENV ANDROID_TARGET_SDK="26" \
ANDROID_BUILD_TOOLS="26.0.0" \
ANDROID_SDK_TOOLS="26.0.1" \
CMAKE_VERSION="3.6.4111459"

RUN apt-get --quiet update --yes
RUN apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1

RUN mkdir android-sdk

RUN chmod 777 android-sdk

RUN cd android-sdk && \
wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip && \
unzip android-sdk.zip

RUN cd android-sdk/tools/bin && \
echo y | ./sdkmanager "platforms;android-${ANDROID_TARGET_SDK}" && \
echo y | ./sdkmanager "platform-tools" && \
echo y | ./sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" && \
echo y | ./sdkmanager "extras;android;m2repository" && \
echo y | ./sdkmanager "extras;google;m2repository" && \
echo y | ./sdkmanager "cmake;${CMAKE_VERSION}" && \
echo y | ./sdkmanager "ndk-bundle"

RUN chmod -R 777 android-sdk

ENV ANDROID_HOME $PWD/android-sdk

Docker Pull Command
Owner
plinzen