mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages. By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install. This results in smaller downloads and installation of packages. Original pull request #268 was modified to fix dependencies on Ubuntu 18.04 and newer. Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Signed-off-by: Jacek Danecki <jacek.danecki@intel.com> https://github.com/intel/compute-runtime/pull/268 Change-Id: I5a5de36102c5d3d3a42def30404078c485705b8a
14 lines
696 B
Plaintext
14 lines
696 B
Plaintext
FROM docker.io/ubuntu:16.04
|
|
LABEL maintainer="jacek.danecki@intel.com"
|
|
|
|
COPY neo /root/neo
|
|
|
|
RUN echo "deb http://ppa.launchpad.net/ocl-dev/intel-opencl/ubuntu xenial main" >> /etc/apt/sources.list; \
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3086B78CC05B8B1; \
|
|
apt-get -y update ; apt-get --no-install-recommends install -y --allow-unauthenticated cmake g++ pkg-config ninja-build libigc-dev intel-gmmlib-dev
|
|
RUN mkdir /root/build; cd /root/build ; cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
|
-DSUPPORT_GEN8=1 -DSUPPORT_GEN9=0 -DSUPPORT_GEN11=0 -DSUPPORT_GEN12LP=0 \
|
|
-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ../neo; \
|
|
ninja -j `nproc`
|
|
CMD ["/bin/bash"]
|