FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# shellcheck 本身不放進映像檔：版本由呼叫端的 Gitea 變數指定，entrypoint.sh 依版本下載（Docker 建置讀不到 Gitea 變數）
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl xz-utils \
 && rm -rf /var/lib/apt/lists/*
COPY . /action
ENTRYPOINT ["/bin/bash", "/action/entrypoint.sh"]
