FROM ubuntu:latest

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

COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]