Running C++ compiled apps in Docker

I have a C++ compiled app which uses the OpenCV libraries. What’s the cleanest solution to move this to Docker? Can I simply start with one of the OpenCV Docker images or should I build from scratch? I’m assuming I have to install a full c++ compiler onto the Docker container and compile directly in the container? And that one it’s compiled I have to move to an identical container or delete the compiler, etc or simply leave the compiler as part of the image? Any pointers or articles appreciated.

1 Like