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