We are using the Helix Publishing Pipeline (HPP) and defined the settings to exclude the default dlls (Sitecore, Commerce, Newtonsoft etc).
There is a publish project in VS for this and when clicked on publish, it works fine by publishing only the non-excluded dlls.
However, when using the same project to create a docker image, it is taking the files from
/bin/ (the HPP bin) folder, and thereby replacing the default dlls.
How to avoid this for a docker setup.