Dockerfile for Ubuntu 22?

I see. I believe for core22 Snapcraft does default to using lxd instances to build, but you should be able to get around that by setting SNAPCRAFT_BUILD_ENVIRONMENT=host on your image.