Commit 16ce7c07 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Install platform dependant packages

parent f745e5e0
Loading
Loading
Loading
Loading
+23 −20
Original line number Diff line number Diff line
@@ -9,11 +9,14 @@ FROM qemux/qemu-host as builder

FROM debian:bookworm-slim

ARG TARGETARCH
ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND noninteractive

RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
    ADD_PKG="xserver-xorg-video-intel"; fi && \
RUN if [ "$TARGETARCH" = "arm64" ]; then \
    PKG="qemu-user"; fi && \
    if [ "$TARGETARCH" = "amd64" ]; then \
    PKG="xserver-xorg-video-intel"; fi && \
    apt-get update && apt-get -y upgrade && \
    apt-get --no-install-recommends -y install \
        curl \
@@ -31,7 +34,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
        ca-certificates \
        netcat-openbsd \
        qemu-system-x86 \
	${ADD_PKG}  \
        ${PKG}  \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*