FROM python:3.14-slim

RUN set -eux; \
	apt-get update; \
	apt-get install -y --no-install-recommends cloc; \
	apt-get dist-clean

WORKDIR /app
RUN pip install --no-cache-dir discord asyncio requests

COPY main.py .
COPY PICable.py .

RUN useradd -m appuser
USER appuser

CMD ["python", "main.py"]
