-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
35 lines (22 loc) · 818 Bytes
/
Dockerfile
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
ARG OPENFOAM_VERSION=2412
FROM microfluidica/openfoam:${OPENFOAM_VERSION} AS dev
ARG PMT_DIR=/usr/local/src/porousMicroTransport
ENV PMT_SRC=${PMT_DIR}/libraries
ENV PMT_SOLVERS=${PMT_DIR}/solvers
ENV PMT_TUTORIALS=${PMT_DIR}/tutorials
COPY libraries ${PMT_SRC}
COPY solvers ${PMT_SOLVERS}
COPY Allwmake Allwclean LICENSE ${PMT_DIR}/
# build and install for all users
RUN ${PMT_DIR}/Allwmake -j -prefix=group \
# clean up
&& ${PMT_DIR}/Allwclean \
# smoke test
&& moistureDiffusivityTransportFoam -help
FROM microfluidica/openfoam:${OPENFOAM_VERSION}-slim AS slim
ARG OPENFOAM_VERSION
COPY --from=dev /usr/lib/openfoam/openfoam${OPENFOAM_VERSION}/site/ /usr/lib/openfoam/openfoam${OPENFOAM_VERSION}/site/
# smoke test
RUN moistureDiffusivityTransportFoam -help
FROM dev
COPY tutorials ${PMT_TUTORIALS}