issue with your dockerfile for btc:
the version of Cap’n Proto you’re installing (libcapnp-dev from Ubuntu 22.04 repos) is 0.8.0, which is vulnerable to CVE-2022-46149. Bitcoin Core refuses to build with it.
Ubuntu 22.04’s package is too old. You need Cap’n Proto 0.9.0 or newer.
might be best to update