very interesting post. i was playing around with the metadata of my goPro Hero 8.
I have a little challenge for you to automate this a bit.
is called docker-compose multi build stages.
it will help you automate ton of these steps.
literally you would only have to do this in the end
docker-compose run -d