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

# 更新並安裝必要的工具後清理暫存檔案以減小映像檔大小
RUN apt update \
    && apt install -y curl jq unzip \
	&& apt clean \
    && rm -rf /var/lib/apt/lists/*
    
COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]