I did this in Nov 2021 - https://www.grepular.com/Self_Building_and_Executing_Dockerf...
#!/usr/bin/env -S bash -c "podman run --rm -w /x -v "\$PWD:/x" \$(podman build -q - < \$0) \${@:1}"