Files
bot 021f86ad61
ci / test (push) Successful in 2s
初始版本
2026-11-05 04:12:38 +00:00

9 lines
531 B
Docker

FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# 只需要 bash、git、curl(可選:查 Go 套件庫);沒有 Go、Node,所以映像檔很小、建得快
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl git \
&& rm -rf /var/lib/apt/lists/*
# 腳本打包進映像檔(action 在獨立的 repo,呼叫端的 workspace 裡沒有這些檔案);發佈新版時要換標籤,runner 才會重建映像檔
COPY . /action
ENTRYPOINT ["/bin/bash", "/action/entrypoint.sh"]