Dockerfile 1.44 KB
Newer Older
1
FROM ubuntu:20.04
2

jannick.wolters's avatar
jannick.wolters committed
3
4
5
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" \
    PYTHONPATH=/usr/local/gmsh/lib:$PYTHONPATH \
    PATH=/usr/local/gmsh/bin:$PATH 
6

7
RUN apt-get update \
8
9
10
    && DEBIAN_FRONTEND=noninteractive apt-get install -qq \
       gcc \
       g++ \
11
       libopenmpi-dev \
12
       openmpi-bin \
13
14
15
16
17
       libblas-dev \
       liblapack-dev \
       git \
       make \
       ninja-build \
18
       cmake \
19
       wget \
20
       ssh \
21
22
23
       libssl-dev \
       libxt-dev \
       libgl1-mesa-dev \
jannick.wolters's avatar
jannick.wolters committed
24
25
26
27
28
       libglu1 \
       libxrender1 \
       libxcursor-dev \
       libxft-dev \
       libxinerama-dev \
29
30
       python3 \
       python3-pip \
31
       doxygen \
32
33
    && apt-get clean \
    && apt-get autoremove --purge \
34
35
    && rm -rf /var/lib/apt/lists/* 

jannick.wolters's avatar
jannick.wolters committed
36
37
38
39
40
41
42
RUN cd /usr/local \
    && wget -nc --quiet  http://gmsh.info/bin/Linux/gmsh-4.7.0-Linux64-sdk.tgz \
    && tar xzf gmsh-4.7.0-Linux64-sdk.tgz \
    && mv gmsh-4.7.0-Linux64-sdk gmsh \
    && rm gmsh-4.7.0-Linux64-sdk.tgz 

RUN wget -nc --no-check-certificate --quiet https://www.vtk.org/files/release/8.2/VTK-8.2.0.tar.gz \
43
44
45
    && tar xzf VTK-8.2.0.tar.gz \
    && mkdir VTK-8.2.0/build \
    && cd VTK-8.2.0/build \
46
47
48
    && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION=OFF -DBUILD_TESTING=OFF  ../ \
    && ninja \
    && ninja install > /dev/null \
49
50
51
    && cd - \
    && rm -rf VTK-*

52
RUN pip3 install numpy pygmsh==6.1.1 Pillow pydicom gcovr sphinx_rtd_theme breathe
53

54
WORKDIR /home