FROM docker.io/fedora:36 ADD images/get_arch /get_arch ENV TINI_VERSION v0.19.0 RUN curl -o /tini -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-$(/get_arch)" RUN chmod +x /tini RUN dnf install -y \ bash \ bzip2 \ cpio \ diffutils \ findutils \ gawk \ gcc \ gcc-c++ \ git \ grep \ gzip \ info \ make \ patch \ python3 \ redhat-rpm-config \ rpm-build \ scl-utils-build \ sed \ shadow-utils \ tar \ unzip \ util-linux \ which \ xz \ dnf-plugins-core \ createrepo_c \ rpm-sign \ sudo \ mock \ python-pip \ imagefactory \ imagefactory-plugins* RUN sed -i -e 's/# memory = 1024/memory = 2048/' /etc/oz/oz.cfg COPY imagefactory.patch / COPY oz.rpm / RUN dnf -y install /oz.rpm RUN (cd /usr/lib/python3.10/site-packages/; patch -p1