File Dockerfile of Package mcp-server-uyuni-image

# SPDX-License-Identifier Apache-2.0
#!BuildTag: uyuni-ai/mcp-uyuni-server:latest uyuni-ai/mcp-uyuni-server:%PKG_VERSION% uyuni-ai/mcp-uyuni-server:%PKG_VERSION%.%RELEASE%
FROM bci/python:3.11

# 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 %PKG_VERSION%"
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/uyuni-ai/mcp-server-uyuni:%PKG_VERSION%.%RELEASE%"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"

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

RUN echo "rpm.install.excludedocs = yes" >>/etc/zypp/zypp.conf && \
    zypper ref && zypper --non-interactive up && \
    zypper --gpg-auto-import-keys --non-interactive install --auto-agree-with-licenses --force-resolution \
    python311-mcp-server-uyuni && \
    zypper clean

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