Created
July 13, 2019 18:21
-
-
Save kashav/683e1440587d846f5b8414f567ae7db9 to your computer and use it in GitHub Desktop.
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 openjdk:8 | |
ENV SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip" \ | |
ANDROID_HOME="/usr/local/android-sdk" \ | |
ANDROID_VERSION=23 \ | |
ANDROID_BUILD_TOOLS_VERSION=23.0.2 | |
# Download Android SDK | |
RUN mkdir "$ANDROID_HOME" .android \ | |
&& cd "$ANDROID_HOME" \ | |
&& curl -o sdk.zip $SDK_URL \ | |
&& unzip sdk.zip \ | |
&& rm sdk.zip \ | |
&& yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses | |
# Install Android Build Tool and Libraries | |
RUN $ANDROID_HOME/tools/bin/sdkmanager --update | |
RUN $ANDROID_HOME/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" \ | |
"platforms;android-${ANDROID_VERSION}" \ | |
"platform-tools" | |
RUN mkdir /application | |
WORKDIR /application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment