# linkml-to-xsd CLI image — for XML toolchains without a Python environment.
#
#   docker run --rm -v $PWD:/work registry.gitlab.com/glueswe/public/linkml:vX.Y.Z \
#     /work/schema.yaml -o /work/schema.xsd
#
# CI builds this from the wheel produced by the `build` job (dist/ artifact);
# for a local build run `python -m build` first.

FROM python:3.14.3-slim@sha256:5e59aae31ff0e87511226be8e2b94d78c58f05216efda3b07dbbed938ec8583b

COPY requirements-docker.txt /tmp/
COPY dist/*.whl /tmp/dist/
RUN pip install --no-cache-dir --no-deps /tmp/dist/*.whl \
    && pip install --no-cache-dir -r /tmp/requirements-docker.txt \
    && pip check \
    && rm -rf /tmp/dist /tmp/requirements-docker.txt

WORKDIR /work
ENTRYPOINT ["gen-xsd"]
CMD ["--help"]
