-
Notifications
You must be signed in to change notification settings - Fork 5
/
root-builder
28 lines (23 loc) · 1.12 KB
/
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
28
# vim: set ft=dockerfile:
# Update to latest version: 2024-01-30
# Note: can be updated to a tag after a version >v0.0.17 is released
FROM quay.io/lvh-images/lvh@sha256:9effc5161cfb265641f0be36cd9c2e8b9c477fa04ac67c01c1fadfae05269417 AS lvh
# rebuild: 20240130.185336
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
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/