blob: ea561524bf6b174b56f3c286e8c28d726ceaa51f [file] [log] [blame]
FROM gcr.io/cloud-builders/javac:8
RUN apt-get update
RUN apt-get install -y cmake
RUN apt-get install -y curl
RUN apt-get install -y ninja-build
RUN apt-get install -y python3-pip
RUN pip3 install meson
RUN curl -o ndk.zip \
https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
RUN unzip ndk.zip
RUN mv android-ndk-r21e /ndk
RUN curl -L -o platform-tools.zip \
https://dl.google.com/android/repository/platform-tools-latest-linux.zip
RUN unzip platform-tools.zip platform-tools/adb
RUN mv platform-tools/adb /usr/bin/adb
WORKDIR /src
ENTRYPOINT ["./gradlew"]
CMD ["--stacktrace", "-PndkPath=/ndk", "release"]