$ curl -L https://github.com/yongjhih/docker-android/raw/master/docker-android > ~/bin/docker-android
$ chmod a+x ~/bin/docker-android
$ docker-android ./gradlew assembleDebug
docker run --rm -v $HOME:$HOME -v $HOME/.gradle:$HOME/.gradle -w $(pwd) -e uid=$UID -e user=$USER yongjhih/android ./gradlew assembleDebug
Apache 2.0, 2015 Andrew Chen