| 用途 | 修改 SHELL 形式指令的解释器 |
|---|---|
| 语法 | SHELL ["/bin/bash", "-o", "pipefail", "-c"] |
| 影响 | RUN/CMD/ENTRYPOINT 的 shell 形式 |
示例
示例
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN set -euo pipefail && ./scripts/build.shWindows 容器默认 cmd,转 PowerShell 也用它:SHELL ["powershell", "-Command"]。