Factored dockerfile.