I am an absolut noop and I hope to find some help here to learn more about docker. I hope you don’t mind these beginner questions. I played around a little bit on a raspberry pi 4b and have docker installed and its building a docker for running Homebridge. While using it I recognised that one of the functions I would like to use in Homebridge need the MIio plugin from npm.
Although I have watched a couple of videos and read about docker I am not sure how to realise it that my docker is build and the MIio plugin is available after restart and also after rebuilding the docker.
I assume that the best way would be to put the install miio command in the dockerfile and not in the yml. but I am not sure because the yml is using an image to build the Homebridge and I am getting confused if that image should not also be in the dockerfile as well.
My yml looks like that:
The dockerfile is empty right now.