Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce fedora uki image size #2365

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions images/Dockerfile.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG BASE_IMAGE
ARG VARIANT
ARG VERSION
ARG FRAMEWORK_VERSION=main
ARG BOOTLOADER=grub

FROM $BASE_IMAGE AS base

Expand Down Expand Up @@ -39,19 +40,11 @@ RUN dnf install -y \
cloud-utils-growpart \
device-mapper \
dosfstools \
dracut \
dracut-live \
dracut-network \
dracut-squash \
dhcp-client \
e2fsprogs \
efibootmgr \
gawk \
gdisk \
grub2 \
grub2-efi-x64 \
grub2-efi-x64-modules \
grub2-pc \
haveged \
kernel \
kernel-modules \
Expand All @@ -66,8 +59,6 @@ RUN dnf install -y \
polkit \
qemu-guest-agent \
rsync \
shim-x64 \
squashfs-tools \
sudo \
systemd \
systemd-networkd \
Expand All @@ -76,7 +67,23 @@ RUN dnf install -y \
which \
&& dnf clean all

FROM common AS all
FROM common AS grub
RUN dnf install -y \
dracut \
dracut-live \
dracut-network \
dracut-squash \
grub2 \
grub2-efi-x64 \
grub2-efi-x64-modules \
grub2-pc \
shim-x64 \
squashfs-tools \
&& dnf clean all

FROM common AS systemd-boot

FROM ${BOOTLOADER} AS all
RUN mkdir -p /run/lock
RUN touch /usr/libexec/.keep
RUN systemctl enable getty@tty1.service
Expand Down
Loading