FROM python:3.14-slim RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends cloc git; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* WORKDIR /app RUN pip install --no-cache-dir discord.py requests COPY main.py . COPY PICable.py . RUN useradd -m appuser && \ mkdir -p /temp && \ chown appuser:appuser /temp USER appuser CMD ["python", "-u", "main.py"]