2020-08-05 00:54:26 +02:00
|
|
|
ARG img_version
|
2020-08-08 23:40:58 +02:00
|
|
|
FROM godot-fedora:${img_version}
|
2020-08-05 00:54:26 +02:00
|
|
|
|
2021-08-08 18:31:09 +02:00
|
|
|
ENV ANDROID_SDK_ROOT=/root/sdk
|
|
|
|
ENV ANDROID_NDK_VERSION=21.4.7075529
|
|
|
|
ENV ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk/${ANDROID_NDK_VERSION}
|
|
|
|
|
2020-08-05 00:54:26 +02:00
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
|
|
gcc gcc-c++ java-1.8.0-openjdk-devel ncurses-compat-libs && \
|
2021-08-08 18:31:09 +02:00
|
|
|
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-29' 'cmake;3.18.1'
|
2020-08-05 00:54:26 +02:00
|
|
|
|
|
|
|
CMD /bin/bash
|