1FROM ubuntu:22.04 2 3# Install tools required for port tasks. 4RUN apt-get update && apt-get install -y \ 5 cmake \ 6 curl \ 7 ninja-build \ 8 openjdk-8-jdk \ 9 python3-pip \ 10 zip 11RUN pip3 install meson 12 13# Install ADB for tests. 14RUN curl -L -o platform-tools.zip \ 15 https://dl.google.com/android/repository/platform-tools-latest-linux.zip 16RUN unzip platform-tools.zip platform-tools/adb 17RUN mv platform-tools/adb /usr/bin/adb 18RUN mkdir -m 0750 /.android 19 20# Build release artifacts. 21WORKDIR /src 22ENTRYPOINT ["./gradlew", "--no-daemon", "--gradle-user-home=.gradle_home", "--stacktrace", "-PndkPath=/ndk"] 23CMD ["-Prelease", "clean", "release"] 24