mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-18 18:06:56 +01:00
19 lines
829 B
Docker
19 lines
829 B
Docker
ARG img_version
|
|
FROM pandemonium-fedora:${img_version}
|
|
|
|
ENV ANDROID_SDK_ROOT=/root/sdk
|
|
ENV ANDROID_NDK_VERSION=21.4.7075529
|
|
ENV ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk/${ANDROID_NDK_VERSION}
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
gcc gcc-c++ java-11-openjdk-devel ncurses-compat-libs && \
|
|
mkdir -p sdk && cd sdk && \
|
|
export CMDLINETOOLS=commandlinetools-linux-7302050_latest.zip && \
|
|
curl -LO https://dl.google.com/android/repository/${CMDLINETOOLS} && \
|
|
unzip ${CMDLINETOOLS} && \
|
|
rm ${CMDLINETOOLS} && \
|
|
yes | cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" --licenses && \
|
|
cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" "ndk;${ANDROID_NDK_VERSION}" 'cmdline-tools;latest' 'build-tools;30.0.3' 'platforms;android-30' 'cmake;3.18.1'
|
|
|
|
CMD /bin/bash
|