Public Repository

Last pushed: 12 days ago
Short Description
Android SDKs with extras
Full Description

Inspired by beevelop/android.

Dockerfile:

FROM java:openjdk-8-jdk

ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip" \
    ANDROID_BUILD_TOOLS_VERSION=26.0.0 \
    ANDROID_APIS="android-19 android-20 android-21 android-22 android-23 android-24 android-25" \
    ANT_HOME="/usr/share/ant" \
    MAVEN_HOME="/usr/share/maven" \
    GRADLE_HOME="/usr/share/gradle" \
    ANDROID_HOME="/opt/android-sdk-linux"

ENV PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$ANT_HOME/bin:$MAVEN_HOME/bin:$GRADLE_HOME/bin

RUN dpkg --add-architecture i386                                  && \
    apt-get -qq update                                            && \
    apt-get -qq install -y ant gradle unzip libncurses5:i386 libstdc++6:i386 zlib1g:i386 && \

    # Installs Android SDK
    mkdir --mode=0755 $ANDROID_HOME                               && \
    cd $ANDROID_HOME                                              && \
    wget -q -O android-sdk.zip ${ANDROID_SDK_URL}                 && \
    unzip -q android-sdk.zip                                      && \
    rm -f android-sdk.zip                                         && \
    yes | sdkmanager --licenses                                   && \
    yes | sdkmanager tools                                        && \
    yes | sdkmanager platform-tools                               && \
    yes | sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" && \
    for p in $ANDROID_APIS ; do sdkmanager "platforms;$p" ; done  && \
    yes | sdkmanager "extras;android;m2repository"                && \
    yes | sdkmanager "extras;google;google_play_services"         && \
    yes | sdkmanager "extras;google;m2repository"                 && \

    # Clean up
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*                 && \
    apt-get autoremove -y                                         && \
    apt-get clean
Docker Pull Command
Owner
stardif