You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.4 KiB

FROM ubuntu:20.04
RUN dpkg --add-architecture i386 && \
apt-get update -y && \
apt-get install -y software-properties-common && \
apt-get update -y && \
apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 wget openjdk-11-jdk git unzip && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
ENV ANDROID_CMDLINE_TOOLS commandlinetools-linux-6609375_latest.zip
ENV ANDROID_CMDLINE_TOOLS_URL https://dl.google.com/android/repository/${ANDROID_CMDLINE_TOOLS}
ENV ANDROID_API_LEVELS android-30
ENV ANDROID_BUILD_TOOLS_VERSION 30.0.1
ENV ANDROID_HOME /usr/local/android-sdk-linux
ENV ANDROID_NDK_HOME /opt/android-ndk
ENV ANDROID_NDK_VERSION 21.3.6528147
ENV PATH ${PATH}:${ANDROID_HOME}/cmdline-tools/tools/bin:${ANDROID_HOME}/platform-tools:${ANDROID_NDK_HOME}
ENV SRC /src
RUN cd /usr/local/ \
&& mkdir -p ${ANDROID_HOME}/cmdline-tools \
&& wget -q ${ANDROID_CMDLINE_TOOLS_URL} \
&& unzip ${ANDROID_CMDLINE_TOOLS} \
&& rm ${ANDROID_CMDLINE_TOOLS} \
&& mv tools ${ANDROID_HOME}/cmdline-tools/ \
&& yes | sdkmanager --licenses \
&& sdkmanager "platforms;${ANDROID_API_LEVELS}" \
&& sdkmanager "tools" "platform-tools" "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" \
&& sdkmanager "extras;android;m2repository" "extras;google;google_play_services" "extras;google;m2repository" \
&& sdkmanager "ndk;${ANDROID_NDK_VERSION}" \
&& rm -rf /var/lib/apt/lists/*
WORKDIR ${SRC}