Refactor Dockerfile.