-
Notifications
You must be signed in to change notification settings - Fork 7
/
root-builder
27 lines (22 loc) · 998 Bytes
/
root-builder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# vim: set ft=dockerfile:
FROM quay.io/lvh-images/lvh:v0.0.19 AS lvh
# rebuild: 20240730.231036
FROM ubuntu:rolling
COPY --from=lvh /usr/bin/lvh /usr/bin/lvh
RUN apt-get update --quiet && \
apt-get upgrade --quiet --yes && \
apt-get install --quiet --yes --no-install-recommends \
mmdebstrap \
libguestfs-tools \
qemu-utils \
linux-image-generic \
zstd \
isc-dhcp-client
ARG TARGETARCH
RUN if [ "$TARGETARCH" = "amd64" ]; then apt-get install -yq --no-install-recommends extlinux; fi
# this might be counter intuitive but without this package (or one of its
# subpackage), starting qemu with '-device virtio-net-pci,netdev=usernet' will
# fail with 'failed to find romfile "efi-virtio.rom"'
RUN if [ "$TARGETARCH" = "arm64" ]; then apt-get install -yq --no-install-recommends qemu-system-x86; fi
RUN apt-get install debian-archive-keyring && \
cp /usr/share/keyrings/debian-archive-keyring.gpg /etc/apt/trusted.gpg.d/