Files
calculate-version/Dockerfile
T
jiantw83 fa4f7cd50b
CI / 1. BUILD (pull_request) Successful in 1s
CI / 2. TEST (pull_request) Successful in 3s
CI / 3. RESULT (pull_request) Successful in 2s
docs(calculate-version): 重整 action 與 workflow 文件
2026-07-11 13:15:21 +00:00

23 lines
865 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# --------------------------------------------------
# 用途:定義 calculate-version action 的 Docker 執行環境與啟動入口。
# 更新日期:2026/07/11 21:08:44Asia/Taipei
# --------------------------------------------------
# 使用 Node LTS Alpine 映像,兼顧 Node 執行環境與較小的映像體積。
FROM node:lts-alpine
# 將工作目錄切換到 /action,後續複製與執行都以此為基準。
WORKDIR /action
# 複製 action 的主程式來源到容器內,供 entrypoint 執行。
COPY src/ /action/src/
# 複製 entrypoint 腳本到容器內,作為啟動入口。
COPY entrypoint.sh /action/entrypoint.sh
# 賦予 entrypoint 可執行權限,否則容器啟動時無法直接執行。
RUN chmod +x /action/entrypoint.sh
# 指定容器啟動時直接執行 entrypoint 腳本。
ENTRYPOINT ["/action/entrypoint.sh"]