分子.js docker 镜像构建问题

问题描述

我正在研究分子。js。在开发中,我使用“dev”运行服务器:“ts-node ./node_modules/.bin/moleculer-runner --hot --repl --configomerr.config.ts services// /*.service.ts --env”运行良好。

-

但是当涉及到部署时,我只想用这个创建一个 docker 镜像

"start": "moleculer-runner",命令

  • 但我面临的错误是找不到分子运行器,我用分子运行器的确切路径替换了我的命令,但它也无法执行。出现此错误
  • module.js:550 抛出错误; ^ 错误:找不到模块 '/app/node_modules/.bin/moleculer-runner ' 在 Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) 在 Function.Module.runMain (module.js:694:10) 在启动时 (bootstrap_node.js:204:16) 在 bootstrap_node.js:625:3

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)