Simplify Dockerfile and remove some layers.