3 COPY scripts/android-base-apt-get.sh /scripts/
4 RUN sh /scripts/android-base-apt-get.sh
6 COPY scripts/android-ndk.sh /scripts/
7 RUN . /scripts/android-ndk.sh && \
8 download_and_make_toolchain android-ndk-r15c-linux-x86_64.zip x86_64 21
10 ENV PATH=$PATH:/android/ndk/x86_64-21/bin
12 ENV DEP_Z_ROOT=/android/ndk/x86_64-21/sysroot/usr/
14 ENV HOSTS=x86_64-linux-android
16 ENV RUST_CONFIGURE_ARGS \
17 --x86_64-linux-android-ndk=/android/ndk/x86_64-21 \
20 --enable-cargo-openssl-static
22 ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS
24 COPY scripts/sccache.sh /scripts/
25 RUN sh /scripts/sccache.sh