mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +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>
22 lines
500 B
Docker
22 lines
500 B
Docker
FROM --platform=linux/amd64 archlinux
|
|
LABEL maintainer.name="The Xen Project" \
|
|
maintainer.email="xen-devel@lists.xenproject.org"
|
|
|
|
# Packages needed for the build
|
|
RUN pacman --noconfirm --needed -Syu \
|
|
base-devel \
|
|
git \
|
|
inetutils \
|
|
riscv64-linux-gnu-binutils \
|
|
riscv64-linux-gnu-gcc \
|
|
riscv64-linux-gnu-glibc \
|
|
# For test phase
|
|
qemu-system-riscv
|
|
|
|
# Add compiler path
|
|
ENV CROSS_COMPILE=riscv64-linux-gnu-
|
|
|
|
RUN useradd --create-home user
|
|
USER user
|
|
WORKDIR /build
|