Dockerfile 686 Bytes
Newer Older
Tru  HUYNH's avatar
Tru HUYNH committed
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
# Copyright (c) 2019-2020 Intel Corporation.
# SPDX-License-Identifier: BSD-3-Clause
FROM centos:7

# install OS tools
RUN yum install -y make gcc gcc-c++ kernel-devel
RUN yum install -y pkgconfig
RUN yum install -y which
RUN yum install -y bzip2
RUN yum install -y epel-release
RUN yum -y upgrade
RUN yum install -y cmake3

# set environment variables
ENV LANG=C.UTF-8

# oneAPI repository
ARG repo=https://yum.repos.intel.com/oneapi
RUN echo -e "\
[oneAPI]\n\
name=Intel(R) oneAPI repository\n\
baseurl=${repo}\n\
enabled=1\n\
gpgcheck=1\n\
repo_gpgcheck=1\n\
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB" \
> /etc/yum.repos.d/oneAPI.repo