Sign inSign up

plinzen/android

By plinzen

•Updated over 5 years ago

Image for building Android apps, which is using the new SdkManager. New: Now with NDK integration

Image
1

6.4K

plinzen/android repository overview

FROM openjdk:8-jdk MAINTAINER Christopher Schott [email protected]⁠

ENV ANDROID_TARGET_SDK="29"
ANDROID_BUILD_TOOLS_VERSION="29.0.2"
ANDROID_SDK_TOOLS="26.1.1"
CMAKE_VERSION="3.10.2.4988404"

RUN apt-get --quiet update --yes &&
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 locales &&
mkdir android-sdk &&
chmod 777 android-sdk &&
cd android-sdk &&
wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip⁠ &&
unzip android-sdk.zip &&
cd tools/bin &&
echo y | ./sdkmanager "platforms;android-${ANDROID_TARGET_SDK}" &&
echo y | ./sdkmanager "platforms;android-28" &&
echo y | ./sdkmanager "platforms;android-27" &&
echo y | ./sdkmanager "platforms;android-26" &&
echo y | ./sdkmanager "platform-tools" &&
echo y | ./sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" &&
echo y | ./sdkmanager "build-tools;28.0.3" &&
echo y | ./sdkmanager "extras;android;m2repository" &&
echo y | ./sdkmanager "extras;google;m2repository" &&
echo y | ./sdkmanager "cmake;${CMAKE_VERSION}" &&
echo y | ./sdkmanager "ndk-bundle" &&
chmod -R 777 /android-sdk

COPY licenses/* android-sdk/licenses/ COPY certificates/* /usr/local/share/ca-certificates/ RUN update-ca-certificates

ENV ANDROID_HOME $PWD/android-sdk ENV ANDROID_BUILD_TOOLS $PWD/android-sdk/build-tools/${ANDROID_BUILD_TOOLS_VERSION}/ ENV PATH="${PATH}:${ANDROID_HOME}:${ANDROID_BUILD_TOOLS}" ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8

Tag summary

Content type

Image

Digest

Size

3.4 GB

Last updated

over 5 years ago

docker pull plinzen/android