Created
July 10, 2015 08:45
-
-
Save dominicthomas/9f4620cd17f1d28db1ad to your computer and use it in GitHub Desktop.
Dockerfile script used to install the android sdk, required api levels and any extras..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM default-java8 | |
MAINTAINER [email protected] | |
# Installs i386 architecture required for running 32 bit Android tools | |
RUN dpkg --add-architecture i386 && \ | |
apt-get update -y && \ | |
apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
apt-get autoremove -y && \ | |
apt-get clean | |
# Installs Android SDK | |
ENV ANDROID_SDK_FILENAME android-sdk_r24.2-linux.tgz | |
ENV ANDROID_SDK_URL http://dl.google.com/android/${ANDROID_SDK_FILENAME} | |
ENV ANDROID_API_LEVELS android-15,android-16,android-17,android-18,android-19,android-20,android-21,android-22 | |
ENV ANDROID_EXTRAS extra-android-support,extra-android-m2repository,extra-google-google_play_services,extra-google-m2repository | |
ENV ANDROID_BUILD_TOOLS_VERSION 22.0.1 | |
ENV ANDROID_HOME /opt/android-sdk-linux | |
ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools | |
RUN cd /opt && \ | |
wget -q ${ANDROID_SDK_URL} && \ | |
tar -xzf ${ANDROID_SDK_FILENAME} && \ | |
rm ${ANDROID_SDK_FILENAME} && \ | |
echo y | android update sdk --no-ui -a --filter tools,platform-tools,${ANDROID_API_LEVELS},build-tools-${ANDROID_BUILD_TOOLS_VERSION},${ANDROID_EXTRAS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment