File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,16 +8,20 @@ ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/tools_r25.2.3-linu
88 ANT_HOME="/usr/share/ant" \
99 MAVEN_HOME="/usr/share/maven" \
1010 GRADLE_HOME="/usr/share/gradle" \
11- ANDROID_HOME="/opt/android-sdk-linux "
11+ ANDROID_HOME="/opt/android"
1212
1313ENV PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$ANT_HOME/bin:$MAVEN_HOME/bin:$GRADLE_HOME/bin
1414
15+ WORKDIR /opt
16+
1517RUN dpkg --add-architecture i386 && \
1618 apt-get -qq update && \
17- apt-get -qq install -y curl maven ant gradle libncurses5:i386 libstdc++6:i386 zlib1g:i386 && \
19+ apt-get -qq install -y wget curl maven ant gradle libncurses5:i386 libstdc++6:i386 zlib1g:i386 && \
1820
1921 # Installs Android SDK
20- curl -sL ${ANDROID_SDK_URL} | tar xz -C /opt && \
22+ mkdir android && cd android && \
23+ wget -O tools.zip ${ANDROID_SDK_URL} && \
24+ unzip tools.zip && rm tools.zip && \
2125 echo y | android update sdk -a -u -t platform-tools,${ANDROID_APIS},build-tools-${ANDROID_BUILD_TOOLS_VERSION} && \
2226 chmod a+x -R $ANDROID_HOME && \
2327 chown -R root:root $ANDROID_HOME && \
You can’t perform that action at this time.
0 commit comments