File Dockerfile of Package mcp-server-uyuni-image

# SPDX-License-Identifier Apache-2.0
#!BuildTag: uyuni-ai/mcp-uyuni-server:latest 
#FROM bci/python:3.11
FROM opensuse/leap:15.6
#FROM $INIT_BASE

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.uyuni-ai.mcp-server-uyuni
PREFIXEDLABEL org.opencontainers.image.title="MCP Server Uyuni container"
PREFIXEDLABEL org.opencontainers.image.description="This contains mcp-server-uyuni"
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/uyuni-ai/mcp-server-uyuni"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"

#RUN zypper --gpg-auto-import-keys ar https://download.opensuse.org/repositories/science:/machinelearning:/mcp/SLE_15_SP7/ pymcp
RUN zypper --gpg-auto-import-keys ar https://download.opensuse.org/repositories/home:/ygutierrez:/branches:/home:/jordimassaguerpla:/branch:/systemsmanagement:/Uyuni:/AI/science_machinelearning_mcp/ mcp_uyuni

# Workaround for https://github.com/openSUSE/obs-build/issues/487
#RUN zypper --non-interactive in sles-release 

RUN zypper --gpg-auto-import-keys ref 
RUN zypper --non-interactive up
RUN zypper --gpg-auto-import-keys --non-interactive install --auto-agree-with-licenses --force-resolution python311-mcp-server-uyuni

CMD ["mcp-server-uyuni"]
openSUSE Build Service is sponsored by