This dockerfile is based on ubuntu 14.04 and will create a base environment for building android roms. I choosed to keep the home folder outside the container to be able to move it when i want to build to another machine.
I've used this guide as reference.
-
Install Docker.
-
To build run: docker build -t masciospam/omnirom-builder .
docker run --tty --interactive -v /PATH-TO-EXTERNAL-FOLDER/:/home/builder/ masciospam/omnirom-builder