Refactor Dockerfile parsing into dockerfile.go