2022-03-23 22:07:11 +01:00
|
|
|
ARG img_version
|
|
|
|
FROM pandemonium-fedora:${img_version}
|
|
|
|
|
|
|
|
ENV ANDROID_SDK_ROOT=/root/sdk
|
2022-08-01 22:17:12 +02:00
|
|
|
ENV ANDROID_NDK_VERSION=23.2.8568313
|
2022-03-23 22:07:11 +01:00
|
|
|
ENV ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk/${ANDROID_NDK_VERSION}
|
|
|
|
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
2024-04-20 17:44:49 +02:00
|
|
|
gcc gcc-c++ java-17-openjdk-devel ncurses-compat-libs && \
|
2022-03-23 22:07:11 +01:00
|
|
|
mkdir -p sdk && cd sdk && \
|
2024-04-20 17:44:49 +02:00
|
|
|
export CMDLINETOOLS=commandlinetools-linux-11076708_latest.zip && \
|
2022-03-23 22:07:11 +01:00
|
|
|
curl -LO https://dl.google.com/android/repository/${CMDLINETOOLS} && \
|
|
|
|
unzip ${CMDLINETOOLS} && \
|
|
|
|
rm ${CMDLINETOOLS} && \
|
|
|
|
yes | cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" --licenses && \
|
2024-04-20 17:44:49 +02:00
|
|
|
cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" "ndk;${ANDROID_NDK_VERSION}" 'cmdline-tools;latest' 'build-tools;34.0.0' 'platforms;android-34' 'cmake;3.22.1'
|
2022-03-23 22:07:11 +01:00
|
|
|
|
|
|
|
CMD /bin/bash
|