FROM registry.fedoraproject.org/fedora:44 AS builderLABEL maintainer="cockpit-devel@lists.fedorahosted.org"LABEL VERSION=mainARG VERSION# This goes into the builder containerRUN dnf install -y 'dnf-command(download)' cpio# This goes into the final container. The cockpit- packages can be replaced# with local builds by the install.sh script later.RUN dnf install -y \--installroot=/build \--setopt=install_weak_deps=False \--use-host-config \cockpit-bridge \cockpit-ws \coreutils-single \openssh-clients \sed \sscg \util-linux-core \;ADD . /containerRUN /container/install.shFROM scratchCOPY --from=builder /build /ADD . /containerLABEL INSTALL="docker run --rm --privileged -v /:/host -e IMAGE=\${IMAGE} \${IMAGE} /container/label-install \${IMAGE}"LABEL UNINSTALL="docker run --rm --privileged -v /:/host -e IMAGE=\${IMAGE} \${IMAGE} /container/label-uninstall"LABEL RUN="docker run -d --name \${NAME} --privileged --pid=host -v /:/host -e NAME=\${NAME} -e IMAGE=\${IMAGE} \${IMAGE} /container/label-run"CMD ["/container/label-run"]