mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-27 12:17:37 +00:00
33 lines
832 B
Docker
33 lines
832 B
Docker
FROM ubuntu:16.04
|
|
|
|
COPY scripts/android-base-apt-get.sh /scripts/
|
|
RUN sh /scripts/android-base-apt-get.sh
|
|
|
|
COPY scripts/dumb-init.sh /scripts/
|
|
RUN sh /scripts/dumb-init.sh
|
|
|
|
COPY scripts/android-ndk.sh /scripts/
|
|
RUN . /scripts/android-ndk.sh && \
|
|
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip arm64 21
|
|
|
|
ENV PATH=$PATH:/android/ndk/arm64-21/bin
|
|
|
|
ENV DEP_Z_ROOT=/android/ndk/arm64-21/sysroot/usr/
|
|
|
|
ENV HOSTS=aarch64-linux-android
|
|
|
|
ENV RUST_CONFIGURE_ARGS \
|
|
--host=$HOSTS \
|
|
--target=$HOSTS \
|
|
--aarch64-linux-android-ndk=/android/ndk/arm64-21 \
|
|
--disable-rpath \
|
|
--enable-extended \
|
|
--enable-cargo-openssl-static
|
|
|
|
ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS
|
|
|
|
COPY scripts/sccache.sh /scripts/
|
|
RUN sh /scripts/sccache.sh
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|