-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
44 lines (39 loc) · 1.13 KB
/
Dockerfile.dev
File metadata and controls
44 lines (39 loc) · 1.13 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
FROM debian:stretch-slim
LABEL maintainer "cyrille.bonamy@legi.cnrs.fr"
ARG WM_NCOMPPROCS=10
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
cmake \
flex \
freeglut3-dev \
g++ \
gcc \
libfl-dev \
libgd-tools \
libopenmpi-dev \
libqt5opengl5-dev \
libqt5x11extras5-dev \
libxt-dev \
libz-dev \
make \
meld \
mercurial \
python-dev \
qtbase5-dev \
qttools5-dev \
wget
WORKDIR /opt/openfoam/5.0/OpenFOAM-5.0
RUN wget -O /tmp/OF.tgz https://codeload.github.com/OpenFOAM/OpenFOAM-5.x/tar.gz/version-5.0 && \
tar -xvf /tmp/OF.tgz --strip-components=1
WORKDIR /opt/openfoam/5.0/ThirdParty-5.0
RUN wget -O /tmp/TP.tgz https://codeload.github.com/OpenFOAM/ThirdParty-5.x/tar.gz/version-5.0 && \
tar -xvf /tmp/TP.tgz --strip-components=1
WORKDIR /opt/openfoam/5.0/OpenFOAM-5.0
RUN /bin/bash -c "source etc/bashrc; ./Allwmake"
RUN find /opt/openfoam -name "*.o" -exec rm -f {} \;
WORKDIR /home/openfoam
ENV HOME /home/openfoam
USER 1000
WORKDIR /home/openfoam/local
ENTRYPOINT ["/bin/bash", "-c"]