forked from fluiddyn/fluidfoam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ci
31 lines (26 loc) · 1.07 KB
/
Dockerfile-ci
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
FROM cbonamy/openfoam5-paraview54-swak4foam-without-nvidia
LABEL maintainer "[email protected]"
# Ensure a sane environment
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
DEBIAN_FRONTEND=noninteractive
# Update the image & install some tools
RUN apt-get update --fix-missing && \
apt-get -y dist-upgrade && \
apt-get install -y --no-install-recommends \
python3 python-dev python-pip python-numpy python-scipy \
python3-dev python3-pip python3-numpy python3-scipy \
python3-matplotlib python3-psutil python-matplotlib \
python3-setuptools python-psutil vera++ git doxygen && \
rm -rf /var/lib/apt/lists/ && rm -rf /usr/share/doc/ && \
rm -rf /usr/share/man/ && rm -rf /usr/share/locale/ && \
apt-get clean
WORKDIR /home/openfoam
RUN /bin/bash -c "git clone https://github.com/fluiddyn/fluidfoam"
WORKDIR /home/openfoam/fluidfoam
RUN /bin/bash -c "make"
RUN /bin/bash -c "make clean"
RUN /bin/bash -c "python3 setup.py develop"
USER openfoam:openfoam
# Set the default entry point & arguments
ENTRYPOINT ["/bin/bash"]