fix: add GPU drivers only on amd64

This commit is contained in:
Kroese 2023-10-09 02:24:52 +02:00 committed by GitHub
parent c2cd9f52f4
commit d69cceba8d

View File

@ -12,7 +12,9 @@ FROM debian:bookworm-slim
ARG DEBCONF_NOWARNINGS="yes" ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND noninteractive ARG DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade && \ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
ADD_PKG="xserver-xorg-video-intel"; fi && \
apt-get update && apt-get -y upgrade && \
apt-get --no-install-recommends -y install \ apt-get --no-install-recommends -y install \
curl \ curl \
cpio \ cpio \
@ -29,7 +31,7 @@ RUN apt-get update && apt-get -y upgrade && \
ca-certificates \ ca-certificates \
netcat-openbsd \ netcat-openbsd \
qemu-system-x86 \ qemu-system-x86 \
xserver-xorg-video-intel \ ${ADD_PKG} \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*