It's still not clear to me, so can you bundle source code into your Dockerfile and just have compilation being part of the docker compose step?
In Compose, the "server" service is running using the image that is produced by that build. It's then handed off to the new Wasm runtime, where the module is extracted and executed. Hope that helps! Feel free to follow up with more questions!