Hey @0xff, bit of a wild guess, but is there any chance you are missing a .dockerignore
file? When you run COPY . ./
it might overwrite the node_modules
folder copied at the previous step from the build container if that folder is not in .dockerignore
Also if the above is not the answer, you may try narrowing down the issue more and more and focus on the serial nodejs library where the error originates from. From its documentation I see By default, we auto-detect Windows, Linux and OS X, and load the appropriate module for your system.
- if the library is doing some serial port probing during build, it will not be the same as doing the build on the device itself. All in all you need to narrow down the origin of the issue by removing things out from your build.
That did the trick. I owe you at least a beer! Many many thanks. Now onto the next issue…
Hi,
this is quite a long conversation already it is hard to make out what would be the next issue. Can you point us in the right direction ?
Regards Thomas
Sorry - I just meant that that you had solved the issue addressed in this thread but that I had miles to go before I sleep, so to speak.
If I need help with other issues I’ll open other threads.
Thanks again for staying with me until it was solved.
.
No worries, we are happy that this worked for you.