# Python runtime for the Discord bot. Source is bind-mounted at /app from ./bot/app (not baked in), # so the dev edits code and restarts the container. Dependencies come from app/requirements.txt and # are installed at BUILD time: after changing it run docker compose build discord-bot && docker compose up -d discord-bot FROM python:3.12-slim ENV PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1 RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg ca-certificates curl \ && rm -rf /var/lib/apt/lists/* COPY app/requirements.txt /tmp/requirements.txt RUN pip install -r /tmp/requirements.txt COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh WORKDIR /app ENTRYPOINT ["/entrypoint.sh"]