File Dockerfile of Package elemental3ctl-sysext-image

#     Copyright (c) 2025 SUSE LLC

# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon.

# Please submit bugfixes or comments via https://bugs.opensuse.org/

#!UseOBSRepositories
#!BuildTag: elemental3ctl:0_%%elemental3ctl_version%%-%RELEASE%
#!BuildTag: elemental3ctl:latest

ARG OS_IMAGE=bci/bci-base
ARG OS_VERSION=16.0

FROM ${OS_IMAGE}:${OS_VERSION} AS builder

WORKDIR /build
RUN zypper -n install elemental3ctl-sysext
RUN install -d -m 0755 /target && \
    install -m 0644 /usr/share/suse-sysext-images/native/*.raw /target/

FROM scratch
COPY --from=builder /target /

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.elemental3
LABEL org.opencontainers.image.authors="https://github.com/SUSE/elemental"
LABEL org.opencontainers.image.title="Elemental3ctl"
LABEL org.opencontainers.image.description="Elemental is a tool for installing, configuring and updating operating system images from an OCI registry."
LABEL org.opencontainers.image.version="0_%%elemental3ctl_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opensuse.reference="registry.opensuse.org/%%IMG_PREFIX%%/elemental3ctl:0_%%elemental3ctl_version%%-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
# endlabelprefix
openSUSE Build Service is sponsored by