try to change the command:
node dist/main.js
if you use Dockerfile to build, use
CMD ["node", "dist/main.js"]