FROM mcr.microsoft.com/dotnet/sdk:10.0

# 安裝必要工具，並清理 apt 快取以縮小映像檔
RUN apt-get update \
    && apt-get install -y --no-install-recommends curl jq unzip \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
