Serialport use leads to segmentation fault when using docker

I assume you realise the serial node uses C bindings and requires either the correct binaries or compilation on the guest?

Does your image have the necessary tools installed to compile the serial port?

See this issue: serialport@10.3.0 fails in docker container on rpi · Issue #2438 · serialport/node-serialport · GitHub - might be relevant.