'Open application after the docker image is build in vs code

Hello I am developing application in vs code inside the container- for convenience I would like it to automatically open app just after the image get build.

Docker image is based on Ubuntu 20

In the bash terminal I just need to /home/sliceruser/Slicer/Slicer to open application I want

However if I write RUN /home/sliceruser/Slicer/Slicer at the end of my Dockerfile it do not open - what am I doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source