Skip to content

Commit

Permalink
fix: add GPU drivers only on amd64
Browse files Browse the repository at this point in the history
fix: add GPU drivers only on amd64
  • Loading branch information
kroese committed Oct 9, 2023
2 parents 22e0a90 + 3b4bd42 commit da2123a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ FROM debian:bookworm-slim
ARG DEBCONF_NOWARNINGS="yes"
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 \
curl \
cpio \
Expand All @@ -29,7 +31,7 @@ RUN apt-get update && apt-get -y upgrade && \
ca-certificates \
netcat-openbsd \
qemu-system-x86 \
xserver-xorg-video-intel \
${ADD_PKG} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand Down

0 comments on commit da2123a

Please sign in to comment.