Updated: I get the same line number as OP (line 7) when I try the 3.0.1 image. Any 3.x image so far yields a breaking result from my prior existing 2 with volume. I've rolled back to 2.2.2 for now and it is at least functional.
I'm getting the same, with some minor variance as I just pulled latest today.
Outputting:
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0xff8f51bc
./entrypoint.sh: line 14: 8 Trace/breakpoint trap (core dumped) /usr/local/bin/node $NODEOPTIONS node_modules/node-red/red.js --userDir /data $FLOWS