-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-oneapi-minimal
31 lines (27 loc) · 1.1 KB
/
Dockerfile-oneapi-minimal
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
FROM ubuntu:22.04
ARG ONEAPI_VERSION='2024.2.1'
# Extend and update the package registry
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get --yes install --no-install-recommends \
ca-certificates \
curl \
gpg \
binutils \
g++ \
gcc \
libc-dev \
make \
cmake \
git
RUN curl https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor > /usr/share/keyrings/oneapi-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" > /etc/apt/sources.list.d/oneAPI.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get --yes install --no-install-recommends \
intel-oneapi-compiler-dpcpp-cpp-${ONEAPI_VERSION} \
intel-oneapi-compiler-fortran-${ONEAPI_VERSION} \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/opt/intel/oneapi/compiler/${ONEAPI_VERSION}/bin:${PATH}"
ENV LD_LIBRARY_PATH="/opt/intel/oneapi/compiler/${ONEAPI_VERSION}/lib:${LD_LIBRARY_PATH}"
# Set default compiler executables
ENV FC=ifx CC=icx