mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-24 18:20:12 +08:00
13 lines
1.1 KiB
Docker
13 lines
1.1 KiB
Docker
FROM debian
|
|
|
|
ENV PATH="/opt/depot_tools:${PATH}" ANDROID_SDK_ROOT=/opt/sdk-root ANDROID_NDK_HOME=/opt/sdk-root/ndk/25.0.8775105/
|
|
|
|
RUN \
|
|
apt-get update && apt-get -y install curl openjdk-17-jre git git-lfs unzip python3 python3-distutils python2 python pkg-config bzip2 libc6-i386 lib32atomic1 lib32stdc++6 && apt-get clean && \
|
|
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /opt/depot_tools && gclient && \
|
|
curl -O https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip && unzip -d /opt commandlinetools-linux-8512546_latest.zip && rm -rf commandlinetools-linux-8512546_latest.zip && \
|
|
curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm -rf get-pip.py && \
|
|
curl -O https://bootstrap.pypa.io/pip/3.6/get-pip.py && python3 get-pip.py && rm -rf get-pip.py && \
|
|
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --licenses && \
|
|
/opt/cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;25.0.8775105" "cmake;3.22.1" "build-tools;30.0.3" "platforms;android-30" "platform-tools"
|