Use layered Docker images

Test Plan: `docker build .`

Reviewers: merkkila

Reviewed By: merkkila

Subscribers: tberman, justin, stephan, serdar

Differential Revision: http://phabricator.thefactory.com/D2357