I'm developing a CMake project that uses Docker to build on Linux. It's 2 libraries and one executable. One of the libraries is made available in source format only and for which I must provide the CMakeLists.txt file myself.
I can't move or copy that directory to my project folder tree on the root of which is my Dockerfile so I need to find a way to reliably ADD that directory to my container every time I build my project. A solution Google returned is to use docker composer to do so, but I can't get it to work.
This is my docker-composer.yml:
version: '3.8'
services:
dlstreamer:
build:
context: ../
dockerfile: ./PrivacyContainer/Dockerfile
As context shows, the sources I want are in a directory at the same level as my project directory.
And yet, when I open my folder in a container using Visual Studio code that folder is never copied. What should I be looking for?