# Orchestrator = DiscordChatExporter (has .NET + the DCE CLI) + Python for parsing.
# Baking scripts + channels.json into the image avoids Portainer's relative
# FILE-bind quirk (see docker-compose.yml header).
FROM tyrrrz/discordchatexporter:stable

USER root
RUN apt-get update \
 && apt-get install -y --no-install-recommends python3 python3-requests \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY orchestrate.py run.sh channels.json ./
RUN chmod +x run.sh

ENTRYPOINT ["./run.sh"]
