Split Dockerfile into two for base image and server image.