1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# ==============================================================================
# Copyright (C) Intel Corporation
#
# SPDX-License-Identifier: MIT
# ==============================================================================
FROM ubuntu:20.04 as vpl_build_env
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
pkg-config \
ca-certificates \
dh-autoreconf \
libdrm-dev \
cmake \
nasm \
python3 \
meson \
&& \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/intel/libva.git && \
cd libva && \
git fetch --tags && \
git checkout $(git describe --tags `git rev-list --tags --max-count=1`) && \
./autogen.sh && \
make -j $(nproc --all) && \
make install
FROM vpl_build_env as vpl_build
ENV VPL_INSTALL_DIR=/onevpl_install
RUN git clone https://github.com/oneapi-src/oneVPL.git /onevpl && \
git clone https://github.com/oneapi-src/oneVPL-cpu.git /onevpl-cpu && \
mkdir /onevpl_install && \
/onevpl/script/build && \
/onevpl/script/install && \
/onevpl-cpu/script/build --bootstrap && \
/onevpl-cpu/script/install
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
LABEL Description="oneVPL Runtime"
LABEL Vendor="Intel Corporation"
# Copy oneVPL
COPY --from=vpl_build /onevpl_install/lib /lib
COPY --from=vpl_build /onevpl_install/bin/vpl-inspect /bin/vpl-inspect
#Install Graphics runtime package
RUN apt update && \
apt install --no-install-recommends -q -y gnupg wget software-properties-common && \
wget https://repositories.intel.com/graphics/intel-graphics.key && \
apt-key add intel-graphics.key && \
apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' && \
apt update && \
apt install --no-install-recommends -q -y libmfxgen1 intel-media-va-driver-non-free libmfx1 libva-drm2 vainfo && \
apt purge -y gnupg wget software-properties-common && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
|