From d03865d1a5e6b76a997c9e7e59045252836b4bba Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 22 Feb 2022 06:56:53 -0600 Subject: [PATCH] add amd64 specific packages to container --- docker/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9363a8fb3..ebe420a08 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -93,6 +93,19 @@ RUN apt-get -qq update \ && rm -rf /var/lib/apt/lists/* /wheels \ && (apt-get autoremove -y; apt-get autoclean -y) +# AMD64 specific packages +RUN if [ "${TARGETARCH}" = "amd64" ]; \ + then \ + wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | apt-key add - \ + && echo 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' > /etc/apt/sources.list.d/intel-graphics.list \ + && apt-get -qq update \ + && apt-get -qq install --no-install-recommends -y \ + # VAAPI drivers for Intel hardware accel + libva-drm2 libva2 libmfx1 i965-va-driver vainfo intel-media-va-driver-non-free mesa-vdpau-drivers mesa-va-drivers mesa-vdpau-drivers libdrm-radeon1 \ + && rm -rf /var/lib/apt/lists/* \ + && (apt-get autoremove -y; apt-get autoclean -y) \ + fi + COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/ # get model and labels