node.js - 从 docker 容器“失败”中启动 create-react-app / react-scripts 服务器,错误代码为 0
问题描述
我的屏幕输出是:
frontend |
frontend | ℹ 「wds」: Project is running at http://192.168.16.2/
frontend | ℹ 「wds」: webpack output is served from
frontend | ℹ 「wds」: Content not from webpack is served from /usr/src/app/public
frontend | ℹ 「wds」: 404s will fallback to /
frontend | Starting the development server...
frontend |
frontend exited with code 0
这就是我所得到的。当我将 Dockerfile 中的最后一行替换CMD ["npm", "start"]
为ENTRYPOINT ["tail", "-f", "/dev/null"]
, start, bash 并npm start
手动执行时,一切都按预期工作。有什么方向吗?
解决方案
推荐阅读
- python - 头部姿势估计
- unity3d - 如何仅在面板中显示 RawImage 的一部分?
- typeorm - 如何在 TypeORM 中多次将 where-criteria 应用于同一字段?
- java - 评估包含条件运算符的 Java 表达式
- sas - 这是在SAS中添加注释文本的第四种方法吗?
- fortran - Fortran - 具有不同形状的输入参数
- javascript - 如何从客户订单详细信息电子邮件 WooCommerce 中删除变化信息
- amazon-web-services - Terraform AWS Newrelic 与 IAM 角色的集成
- c - 以下代码中发生了多少次类型转换?
- sql - OLAP 系统中的 OLTP 类型数据