Files
ai-code-review/entrypoint.sh
T

9 lines
383 B
Bash
Executable File

#!/bin/sh
# Docker 容器 action 的進入點腳本,於容器啟動時執行 Node 主程式並轉傳所有參數。
# 遇到任何指令執行失敗時立即中止腳本,避免錯誤被吞掉而繼續往下執行
set -e
# 以 exec 取代目前 shell 程序執行 Node 主程式,並將容器收到的所有參數("$@")原樣轉傳給它
exec node /action/src/main.js "$@"