【问题标题】:DOCKERFILE NPM Command to include colon and hyphensDOCKERFILE NPM 命令包括冒号和连字符
【发布时间】:2021-03-17 16:30:46
【问题描述】:

我的 package.json 有这些脚本:

如何更改 CMD 数组以符合“start:stage-ena-sso”的条件?
我试过了,但它无法编译:

CMD ["npm","start:stage-ena-sso"]

【问题讨论】:

    标签: node.js angular docker dockerfile


    【解决方案1】:

    请按以下方式使用

    CMD ["npm", "run", "start:stage-ena-sso"]
    

    【讨论】:

    猜你喜欢
    • 2021-09-06
    • 1970-01-01
    • 2017-02-27
    • 1970-01-01
    • 1970-01-01
    • 2017-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多