Add rm option to docker build to remove intermediate containers