# SPDX-FileCopyrightText: 2026 mcp-jenkins-client contributors
# SPDX-License-Identifier: MIT

FROM python:3.12-slim AS builder

WORKDIR /app
COPY pyproject.toml .
COPY src/ src/
COPY README.md .
# Built into the package's dist-info, so the image carries the MIT notice.
COPY LICENSE .
RUN pip install --no-cache-dir .

FROM python:3.12-slim

WORKDIR /app
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=builder /usr/local/bin/mcp-jenkins-client /usr/local/bin/mcp-jenkins-client

ENTRYPOINT ["mcp-jenkins-client"]
