FROM node:24.12.0-alpine3.23 # Set working directory WORKDIR /app # Copy package.json COPY ./src/package.json ./ # Install dependencies RUN npm install # Copy source COPY ./src ./ # Create replied_ids.json RUN touch replied_ids.json # Setup entrypoint COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh # Change line break RUN apk add --no-cache dos2unix RUN dos2unix /entrypoint.sh RUN find /app -type f -exec dos2unix {} \; # Run entrypoint ENTRYPOINT ["/entrypoint.sh"]