Creating Images of Applications

When making a docker image within the docker file you copy the source code. does the source code need to be compiled? I want to create an image of an application I developed in C++ that uses CMake so would I copy the build folder contents into the /opt/ directory?

Hello benjamin.f.pratt,
yes, you can copy the build folder without any issue.

Thanks,
KodeKloud Support