FROM python:3.12

WORKDIR /usr/src/nortrom
COPY . /usr/src/nortrom

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV UV_FROZEN=1
ENV UV_NO_DEV=1
RUN uv sync

ENV PYTHONUNBUFFERED=1

ENTRYPOINT ["uv", "run", "python", "-m", "nortrom"]
CMD []

LABEL org.opencontainers.image.title="Nortrom"
LABEL org.opencontainers.image.description="Discord bot to mute or deafen entire channels at once"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
LABEL org.opencontainers.image.version="1.0.2"
LABEL org.opencontainers.image.licenses="EUPL-1.2"
LABEL org.opencontainers.image.url="https://forge.steffo.eu/steffo/-/packages/container/nortrom/latest"
LABEL org.opencontainers.image.source="https://forge.steffo.eu/steffo/nortrom"
