Fixed docker file
This commit is contained in:
parent
f42b1c6a96
commit
05e38fe1c8
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,6 @@ ENV ANDROID_HOME /opt/android-sdk-linux
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl nano sudo unzip vim wget openjdk-8-jdk-headless rsync ssh git && \
|
apt-get install -y curl nano sudo unzip vim wget openjdk-8-jdk-headless rsync ssh git && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
RUN chmod ugo+rwx /opt/android-sdk-linux
|
|
||||||
|
|
||||||
# Get the Android tools
|
# Get the Android tools
|
||||||
RUN wget https://dl.google.com/android/repository/tools_r$ANDROID_SDK-linux.zip && \
|
RUN wget https://dl.google.com/android/repository/tools_r$ANDROID_SDK-linux.zip && \
|
||||||
|
@ -30,7 +29,7 @@ RUN wget https://dl.google.com/android/repository/tools_r$ANDROID_SDK-linux.zip
|
||||||
ENV PATH $ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH
|
ENV PATH $ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH
|
||||||
|
|
||||||
# Get the Android SDK
|
# Get the Android SDK
|
||||||
RUN echo "y" | sdkmanager "platforms;android-28" "build-tools;28.0.3" "platforms;android-29" "build-tools;29.0.3" "extras;android;m2repository" "extras;google;m2repository" "platform-tools" "tools"
|
RUN echo "y" | sdkmanager "platforms;android-28" "build-tools;28.0.3" "platforms;android-29" "build-tools;29.0.2" "build-tools;29.0.3" "extras;android;m2repository" "extras;google;m2repository" "platform-tools" "tools"
|
||||||
|
|
||||||
# Accept Android SDK licenses
|
# Accept Android SDK licenses
|
||||||
RUN yes | sdkmanager --licenses
|
RUN yes | sdkmanager --licenses
|
||||||
|
@ -40,6 +39,7 @@ RUN echo y | android update sdk --no-ui --all --filter platform-tools
|
||||||
RUN echo y | android update sdk --no-ui --all --filter android-28
|
RUN echo y | android update sdk --no-ui --all --filter android-28
|
||||||
RUN echo y | android update sdk --no-ui --all --filter build-tools-28.0.3
|
RUN echo y | android update sdk --no-ui --all --filter build-tools-28.0.3
|
||||||
RUN echo y | android update sdk --no-ui --all --filter android-29
|
RUN echo y | android update sdk --no-ui --all --filter android-29
|
||||||
|
RUN echo y | android update sdk --no-ui --all --filter build-tools-29.0.2
|
||||||
RUN echo y | android update sdk --no-ui --all --filter build-tools-29.0.3
|
RUN echo y | android update sdk --no-ui --all --filter build-tools-29.0.3
|
||||||
|
|
||||||
# Configure user bc
|
# Configure user bc
|
||||||
|
|
Loading…
Reference in a new issue