That looks like a bug, and I’d like to fix it. By any chance, are you using prisma, and can you share the datasource portion of your schame.prisma file?
A correct docker-entrypoint.js would look something like this:
There will be a lot of variation on this theme, bases on things like if your app is "type": "module" or not.