Building nRF application with external modules/libraries in the nRF Docker container?

Hi

We are working on setting up CI/CD pipelines for our nRF application. 
The application is set up as a stand-alone application with its own west workspace. It uses external libraries/modules that are added to west workspace via west.yaml and running "west update".

We were able to build some simple samples in the pre-build Docker images from the nordicplayground/nrfconnect-sdk but perhaps it is not a suitable option for this case, if we are not mistaken, as "west update" inside the pre-build docker image doesn't read the project west.yaml and running "west init" on another directory makes the build time too long.

What is the best strategy for building projects with modified west.yaml in Docker?

Should we pre-build our own Docker image with nRF SDK installed and west initialized in our project workspace directory instead of ncs? Or are there any better/simplier options?

Thank you for any advice!

Related