What exactly do you mean with “calling API to create queue” ? You’re doing cli commands or SEMP requests ?
Nevertheless, it isn’t supported to add anything into the image or change any RUN commands.
The recommended way of doing what you want to do:
Start your docker container.
Wait for the broker to come up (we know, that could take a few minutes)
after that, configure queues from outside with SEMPv2.