-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathContainerfile.cloudcast.gpu
More file actions
25 lines (18 loc) · 989 Bytes
/
Containerfile.cloudcast.gpu
File metadata and controls
25 lines (18 loc) · 989 Bytes
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
FROM nvidia/cuda:11.8.0-runtime-rockylinux8
# registry.access.redhat.com/ubi8
RUN rpm -ivh https://download.fmi.fi/smartmet-open/rhel/8/x86_64/smartmet-open-release-latest-8.noarch.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
dnf -y install dnf-plugins-core && \
dnf config-manager --set-enabled powertools && \
dnf config-manager --setopt="epel.exclude=eccodes*" --save && \
dnf -y module disable postgresql && \
dnf -y install python39 python39-devel eccodes libglvnd-glx gdal35 gdal35-devel gcc-c++ git cuda-nvcc-11-8 && \
dnf -y clean all
WORKDIR /opt/app-root/src/
RUN git clone https://github.com/fmidev/cloudcast.git
ADD libcudnn8-8.9.7.29-1.cuda11.8.x86_64.rpm /tmp
RUN rpm -ivh /tmp/libcudnn8-*rpm
WORKDIR /opt/app-root/src/cloudcast/cloudcast
ENV PYTHONPATH /opt/app-root/src/cloudcast:${PYTHONPATH}
ENV PATH /usr/gdal35/bin:${PATH}
RUN python3.9 -m pip --no-cache-dir install -r requirements.txt