This image provides the following components:
- Ubuntu 18.04
- OpenJDK 8
- Gradle 3.4.1
- Android SDK with
android-26
platform andbuild-tools
version 27.0.3
Run the following command to build the Docker image:
docker build -t swatteau/ubuntu-android .
To open a Bash shell inside the container, run the following command:
docker run -it swatteau/ubuntu-android
To bind a development directory on the host machine to a directory inside the container (e.g. /root
), use the following command:
docker run -it --mount type=bind,source=$(pwd),target=/root swatteau/ubuntu-android