Last active
October 25, 2015 14:01
-
-
Save frapontillo/c20c616662ec02497451 to your computer and use it in GitHub Desktop.
Android on Docker
This file contains 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 frapontillo/java:7 | |
MAINTAINER Francesco Pontillo <[email protected]> | |
WORKDIR /opt/ | |
RUN wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz | |
RUN tar -xvf android-sdk_r24.3.4-linux.tgz | |
RUN mv android-sdk-linux android-sdk && \ | |
rm android-sdk_r24.3.4-linux.tgz | |
ENV ANDROID_HOME /opt/android-sdk | |
ENV PATH $PATH:$ANDROID_HOME/tools | |
ENV PATH $PATH:$ANDROID_HOME/platform-tools | |
RUN echo y | sudo android update sdk --no-ui --all --filter tools,platform-tools | |
# this will prompt a "android: command not found" | |
RUN android --help | |
# this will print nothing | |
RUN ls /opt/android-sdk/tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Francesco, have you solved issue https://code.google.com/p/android/issues/detail?id=183131 ?