-
-
Save RyanRamchandar/d169f05047bf442ef588b888364ba952 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 java:8 | |
RUN apt-get update \ | |
&& apt-get -y install file build-essential | |
ENV SDK_URL https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | |
ENV ANDROID_HOME /opt/android-sdk-linux | |
ENV ANDROID_NDK_HOME $ANDROID_HOME/ndk-bundle | |
ENV PATH $ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_NDK_HOME:$PATH | |
# no longer need since yes | sdkmanager --licenses handles everything. kept for future just in case.... y'know | |
# accept all licences http://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences | |
# RUN mkdir -p "$ANDROID_HOME/licenses" | |
# RUN echo 8933bad161af4178b1185d1a37fbf41ea5269c55 >> $ANDROID_HOME/licenses/android-sdk-license | |
# RUN echo d56f5187479451eabf01fb78af6dfcb131a6481e >> $ANDROID_HOME/licenses/android-sdk-license | |
# RUN echo 99c0028c33805669c5aafd6a51857a5e95b90d6e >> $ANDROID_HOME/licenses/android-sdk-preview-license | |
# RUN echo 84831b9409646a918e30573bab4c9c91346d8abd >> $ANDROID_HOME/licenses/android-sdk-preview-license | |
# download and unzip sdk | |
RUN mkdir -p $ANDROID_HOME \ | |
&& wget -q $SDK_URL -O android-sdk.zip \ | |
&& unzip android-sdk.zip -d $ANDROID_HOME \ | |
&& rm -f android-sdk.zip | |
# accept all licences | |
RUN yes | sdkmanager --licenses | |
# download ndk | |
RUN sdkmanager "ndk-bundle" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment