Docker is great if you don't care about your build performance across a wide range of hosts, it's probably fine for small projects but I've seen incremental build times climb quickly where docker support wasn't the best(i.e. OSX).
There’s zillions of options for doing this nowadays, many of them self-hostable, which is pretty cool.