11# This dockerfile is based on Bitrise but with a lot of extra cruft we don't need removed
22FROM ubuntu:focal
3- MAINTAINER Parity Technologies <
[email protected] >
3+ LABEL maintainer= " Parity Technologies <[email protected] >" 44
55ENV ANDROID_SDK_ROOT /opt/android-sdk-linux
66ENV ANDROID_HOME /opt/android-sdk-linux
@@ -14,7 +14,7 @@ RUN apt-get -y update && apt-get -y install default-jdk wget unzip curl clang
1414# NDK setup is taken from https://github.com/bitrise-io/android-ndk/blob/master/Dockerfile
1515
1616RUN cd /opt \
17- && wget -q https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest .zip -O android-commandline-tools.zip \
17+ && wget -q https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest .zip -O android-commandline-tools.zip \
1818 && mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools \
1919 && unzip -q android-commandline-tools.zip -d /tmp/ \
2020 && mv /tmp/cmdline-tools/ ${ANDROID_SDK_ROOT}/cmdline-tools/latest \
@@ -25,6 +25,7 @@ ENV PATH ${PATH}:${ANDROID_SDK_ROOT}/platform-tools:${ANDROID_SDK_ROOT}/cmdline-
2525RUN yes | sdkmanager --licenses
2626# We need at least one set of build-tools installed for apksigner
2727RUN yes | sdkmanager "build-tools;30.0.3"
28+ RUN echo "y" | sdkmanager --install "ndk;24.0.8215888" --sdk_root=${ANDROID_SDK_ROOT}
2829
2930RUN mkdir /opt/android-ndk-tmp && \
3031 cd /opt/android-ndk-tmp && \
@@ -49,6 +50,8 @@ ENV PATH=/usr/local/cargo/bin:$PATH
4950WORKDIR /build
5051
5152RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
53+ # install additional rust targets
54+ RUN rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
5255
5356COPY scripts /tmp/scripts/
5457RUN bash /tmp/scripts/init.sh
0 commit comments