FROM alpine:latest

# 安裝必要的工具
RUN apk add --no-cache --no-check-certificate bash nodejs npm

COPY ./app /app
RUN cd /app && npm install

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]