mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Pass the desired architecture of the image in the FROM instruction if the image is possibly multi-platform. This allows using the x86 Dockerfiles on OS X on arm64 hardware. No functional change intended. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
56 lines
1.2 KiB
Docker
56 lines
1.2 KiB
Docker
FROM --platform=linux/amd64 archlinux:base-devel
|
|
LABEL maintainer.name="The Xen Project" \
|
|
maintainer.email="xen-devel@lists.xenproject.org"
|
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman -S --refresh --sysupgrade --noconfirm --noprogressbar --needed \
|
|
bin86 \
|
|
bridge-utils \
|
|
bzip2 \
|
|
dev86 \
|
|
discount \
|
|
dtc \
|
|
e2fsprogs \
|
|
ghostscript \
|
|
git \
|
|
gnutls \
|
|
go \
|
|
iasl \
|
|
inetutils \
|
|
iproute \
|
|
# lib32-glibc for Xen < 4.15
|
|
lib32-glibc \
|
|
libaio \
|
|
libcacard \
|
|
libgl \
|
|
libjpeg-turbo \
|
|
libnl \
|
|
libpng \
|
|
libseccomp \
|
|
net-tools \
|
|
nss \
|
|
perl \
|
|
pixman \
|
|
pkgconfig \
|
|
python \
|
|
python-setuptools \
|
|
sdl \
|
|
sdl2 \
|
|
spice \
|
|
spice-protocol \
|
|
systemd \
|
|
transfig \
|
|
usbredir \
|
|
wget \
|
|
xz \
|
|
yajl \
|
|
zlib \
|
|
&& yes | pacman -S --clean --clean
|
|
|
|
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
|
|
|
|
RUN useradd --create-home user
|
|
USER user
|
|
WORKDIR /build
|