Another is running containers in read-only mode, assuming they support this configuration... will minimize a lot of potential attack surface.
Unfortunately, there is no way to specify those `emptyDir` volumes as `noexec` [1].
I think the docker equivalent is `--tmpfs` for the `emptyDir` volumes.
Having such a nice layered buildsystem with mountpoints, I'm amazed Docker made readonly an afterthought.