Created
May 29, 2016 18:36
-
-
Save cnelson/b7ca6f1a1f8f206f6f5686502b5699ca to your computer and use it in GitHub Desktop.
Android SDK container
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 ubuntu:16.04 | |
RUN apt-get update -qq | |
# Dependencies to execute android | |
RUN apt-get install -y --no-install-recommends openjdk-8-jdk wget git ant | |
# Main Android SDK | |
RUN cd /opt && wget -q https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz && tar xzf *.tgz && rm -f *.tgz | |
# Other tools and resources of Android SDK | |
ENV ANDROID_HOME /opt/android-sdk-linux | |
ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools | |
RUN /bin/bash -c "until false; do echo y; sleep 2; done" | android update sdk --no-ui --filter 2,3,android-22 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment