Builds project in
/opt/workspace using Gradle and tools for Android SDK level 23.
Use this command to build a project:
docker run -it -v $(pwd):/opt/workspace wiktork/gradle-android
The output apk will be in
This image on Docker Hub.
Note that because Gradle is being run as a
CMD its actions are not cached. It is advised to create a custom Docker image using this image as a
FROM and run Gradle from a regular
RUN instruction for better performance.
Note that you must accept Android SDK Licence Agreement to use this image.