chore(docker): add pip3 package installer for Python3

This commit is contained in:
superzheng
2022-08-04 11:43:42 +08:00
committed by Super Zheng
parent 92dd701f0d
commit f472e683ab
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -7,5 +7,6 @@ apt-get update && apt-get -y install curl openjdk-17-jre git git-lfs unzip pytho
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-8092744_latest.zip && unzip -d /opt commandlinetools-linux-8092744_latest.zip && rm -rf commandlinetools-linux-8092744_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;23.1.7779620" "cmake;3.10.2.4988404" "build-tools;30.0.2" "platforms;android-30"
+2 -1
View File
@@ -5,4 +5,5 @@ ENV PATH="/opt/depot_tools:${PATH}"
RUN \
apt-get update && apt-get -y install curl 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://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/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