| # Copyright 2020 The IREE Authors | |
| # | |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. | |
| # See https://llvm.org/LICENSE.txt for license information. | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| # An image for cross-compiling IREE towards Android. | |
| FROM gcr.io/iree-oss/base@sha256:d42da77c616301dacb109c901350b866401fa727cd0c3ddaf8f69418ecd22097 | |
| ARG NDK_VERSION=r21d | |
| WORKDIR /install-ndk | |
| ENV ANDROID_NDK "/usr/src/android-ndk-${NDK_VERSION}" | |
| RUN wget -q "https://dl.google.com/android/repository/android-ndk-${NDK_VERSION?}-linux-x86_64.zip" \ | |
| && unzip -q "android-ndk-${NDK_VERSION?}-linux-x86_64.zip" -d /usr/src/ \ | |
| && rm -rf /install-ndk | |
| WORKDIR / |