mindrunner/docker-android-sdk

remove sdk-tools-linux.zip from image to reduce size by 131MB

Closed this issue · 1 comments

Maybe a simple marker file is enough to prevent bootstrapping to occur twice.

Something like this:

if [ -f .bootstrapped ]
then
  echo "SDK Tools already bootstrapped. Skipping initial setup"
else
  echo "Bootstrapping SDK-Tools"
  wget -q http://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O sdk-tools-linux.zip
  unzip sdk-tools-linux.zip
  touch .bootstrapped
  rm sdk-tools-linux.zip
fi

This would reduce the standalone image size by 131MB.