第 12 章 应用程序镜像
12.1. Node.js
12.1.1. 描述
rhscl/nodejs-14-rhel7 镜像提供了一个 Node.js 14 平台,用于构建和运行应用。
12.1.2. 权限
要拉取 rhscl/nodejs-14-rhel7 镜像,以 root 用户身份运行以下命令:
# podman pull registry.redhat.io/rhscl/nodejs-14-rhel7
12.1.3. 配置
要设置环境变量,您可以将它们作为键值对放在源代码存储库中的 .s2i/environment
文件中。
变量名称 | 描述 |
---|---|
| nodejs 运行时模式(默认:"生产环境") |
|
当设置为 "true" 时,会使用 |
|
选择在 |
| 在装配过程中使用 npm 代理 |
| 在装配过程中使用 npm 代理 |
| 在构建过程中使用自定义 NPM registry 镜像下载软件包 |