This question was asked in 2024, but as of April 2025, Apire .NET 9.2 has been release and can now publish to a docker compose. the following link explains it more.