3
3
4
4
FROM quay.io/w1th0utnam3/docker-dolfinx-base:latest
5
5
6
- # Install other dependencies
7
- RUN pip3 install cffi pytest
8
-
9
6
# Clone this repository
10
7
WORKDIR /local
11
8
RUN git clone --recurse-submodules https://github.com/w1th0utnam3/fenics_work.git
12
9
13
10
# Install FIAT, UFL, dijitso and ffcx
14
- RUN pip3 install -e /local/fenics_work/main /fiat && \
15
- pip3 install -e /local/fenics_work/main /ufl && \
16
- pip3 install -e /local/fenics_work/main /dijitso && \
17
- pip3 install -e /local/fenics_work/main /ffcx
11
+ RUN pip3 install -e /local/fenics_work/submodules /fiat && \
12
+ pip3 install -e /local/fenics_work/submodules /ufl && \
13
+ pip3 install -e /local/fenics_work/submodules /dijitso && \
14
+ pip3 install -e /local/fenics_work/submodules /ffcx
18
15
19
16
# Build and install dolfinx
20
- RUN cd /local/fenics_work/main /dolfinx && \
17
+ RUN cd /local/fenics_work/submodules /dolfinx && \
21
18
mkdir build && \
22
19
cd build && \
23
- cmake -DCMAKE_BUILD_TYPE=Developer ../cpp && \
24
- make -j8 && \
25
- make install
20
+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer ../cpp && \
21
+ ninja -j8 install
26
22
27
23
# Install dolfinx python package
28
- RUN pip3 install -e /local/fenics_work/main /dolfinx/python
24
+ RUN pip3 install -e /local/fenics_work/submodules /dolfinx/python
29
25
30
26
WORKDIR /tmp
31
27
@@ -38,6 +34,6 @@ RUN pip3 install --no-cache-dir git+https://github.com/coneoproject/COFFEE.git
38
34
RUN pip3 install --no-cache-dir git+https://github.com/FInAT/FInAT.git
39
35
40
36
# Additional packages for development
41
- RUN pip3 install dataclasses
37
+ RUN pip3 install dataclasses cffi pytest
42
38
43
- WORKDIR /local/fenics_work/main
39
+ WORKDIR /local/fenics_work/simd
0 commit comments