FROM alpine:latest

# 更新並安裝必要的工具
RUN apk update \
   && apk add --no-cache bash curl jq
    
COPY entrypoint.sh /entrypoint.sh

RUN sed -i 's/\r//' /entrypoint.sh && chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]