Currently I'm building GUI applications for Linux and they have many dependencies( We ship Raspberry Pi devices with the executable installed on each device). My idea is to create a docker image for the executable and copy the image across all the devices instead of installing all the dependencies on each device and then install the application(The process takes about 6 hours). I assume shipping updates to the application this way is easy( deploy the updated image on docker hub).
Now that I want to run the GUI application from the container, is there a way I could just launch the GUI application the normal way(by double clicking.....)?
I would like to know if this is a right approach to what I want to achieve? If this is not the right approach, I would like to hear any other recommendations.
Edit: People who are down voting the question please mention the reason for down votes in the comments.