-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (55 loc) · 1.72 KB
/
Dockerfile
File metadata and controls
69 lines (55 loc) · 1.72 KB
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
61
62
63
64
65
66
67
68
69
FROM ghcr.io/scientificcomputing/fenics-gmsh:2024-05-30
WORKDIR /home/app
ENV DEBIAN_FRONTEND=noninteractive
# Remove MPICH (if installed) and install Open MPI
# RUN apt-get update && \
# apt-get remove -y mpich && \
# apt-get install -y --no-install-recommends \
# openmpi-bin \
# libopenmpi-dev && \
# apt-get clean && rm -rf /var/lib/apt/lists/*
# Install additional necessary packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
npm \
nodejs \
vim \
emacs \
cmake \
git \
python3-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Python packages, including ngsolve from pip
RUN pip3 install --no-cache-dir \
tools \
numpy \
scipy \
matplotlib \
psutil \
pytest \
mpi4py \
mkl \
PyPardiso \
pyamg
RUN pip3 install --no-cache-dir scikit-learn pandas
# RUN pip3 install --no-cache-dir --ignore-installed torch
RUN pip3 uninstall scipy -y
RUN pip3 install scipy==1.10
RUN pip3 uninstall numpy -y
RUN pip3 install numpy==1.21.5
# # Install petsc4py
# RUN python3 -m pip install petsc4py
# # Install ngsPETSc from GitHub
# RUN python3 -m pip install ngsPETSc
RUN pip install ngsolve
#The apt-get version of ngsolve does not have paradiso included
# RUN add-apt-repository ppa:ngsolve/ngsolve && \
# apt-get install -y ngsolve
# ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/:/root/.local/lib/"
ENV PATH="${PATH}:/root/.local/bin"
ENV DIJITSO_CACHE_DIR=/tmp/dijitso_cache
RUN mkdir -p /tmp/dijitso_cache
COPY . /home/app
WORKDIR /home/app
CMD ["bash", "run_Transient.sh"]