| 6 |
| ENV DEBIAN_FRONTEND=noninteractive \ |
| 7 | RUSTUP_HOME=/opt/rustup \ |
| 8 | CARGO_HOME=/opt/cargo \ |
| 9 | PATH=/opt/cargo/bin:/opt/rustup/bin:$PATH \ |
| 10 | TZ=UTC \ |
| 11 | LC_ALL=C \ |
| 12 | SOURCE_DATE_EPOCH=1 \ |
| 13 | CARGO_INCREMENTAL=0 |
| 14 |
| 15 | RUN apt-get update && apt-get install -y --no-install-recommends \ |
| 16 | ca-certificates \ |
| 17 | curl \ |
| 18 | build-essential \ |
| 19 | && rm -rf /var/lib/apt/lists/* |
| 20 |
| 21 | RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ |
| 22 | sh -s -- -y \ |
| 23 | --profile minimal \ |
| 24 | --default-toolchain "$RUST_VERSION" \ |
| 25 | --no-modify-path \ |
| 26 | && chmod -R a+rX /opt/rustup /opt/cargo |
| 27 |
| 28 | RUN rustup target add \ |
| 29 | aarch64-linux-android \ |
| 30 | armv7-linux-androideabi \ |
| 31 | i686-linux-android \ |
| 32 | x86_64-linux-android |
| 33 |
| 34 | COPY entrypoint.sh /usr/local/bin/entrypoint.sh |
| 35 | RUN chmod +x /usr/local/bin/entrypoint.sh |
| 36 |
| 37 | WORKDIR /work |
| 38 | ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |