40 lines
750 B
Docker
40 lines
750 B
Docker
FROM registry.fedoraproject.org/fedora-minimal:39 AS build
|
|
|
|
RUN --mount=type=cache,target=/var/cache \
|
|
microdnf install -y \
|
|
--setopt install_weak_deps=0 \
|
|
autoconf \
|
|
gcc \
|
|
libconfuse-devel \
|
|
make \
|
|
tar \
|
|
xz \
|
|
&& :
|
|
|
|
RUN curl -fsSL https://github.com/pengutronix/genimage/releases/download/v17/genimage-17.tar.xz \
|
|
| tar -xJ \
|
|
&& cd genimage-17 \
|
|
&& ./configure \
|
|
&& make \
|
|
&& make install \
|
|
&& :
|
|
|
|
|
|
FROM registry.fedoraproject.org/fedora-minimal:39
|
|
|
|
RUN --mount=type=cache,target=/var/cache \
|
|
microdnf install -y \
|
|
buildah \
|
|
dosfstools \
|
|
gettext-envsubst \
|
|
libconfuse \
|
|
mtools \
|
|
squashfs-tools \
|
|
tar \
|
|
zstd \
|
|
&& :
|
|
|
|
COPY --from=build /usr/local/bin/genimage /usr/local/bin/genimage
|
|
|
|
ENV BUILDAH_ISOLATION=chroot
|