forked from synthetik-technologies/blastfoam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (20 loc) · 823 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:20.04 AS openfoam
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y wget software-properties-common \
&& sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -" \
&& add-apt-repository http://dl.openfoam.org/ubuntu \
&& apt-get update
RUN apt-get -y install openfoam9
FROM ubuntu:20.04 as prod
SHELL [ "/bin/bash", "-c" ]
ARG DEBIAN_FRONTEND=noninteractive
COPY --from=openfoam /opt/openfoam9 /opt/openfoam9
COPY blastfoam_*.deb .
RUN apt-get -qq -o=Dpkg::Use-Pty=0 update && apt-get -qq -o=Dpkg::Use-Pty=0 install -y gnuplot libopenmpi-dev
RUN dpkg -i blastfoam_*.deb
RUN echo "source /opt/openfoam9/etc/bashrc" >> ~/.bashrc \
&& echo "source /opt/blastfoam/etc/bashrc" >> ~/.bashrc \
&& source ~/.bashrc
WORKDIR /app/blastfoam
ENTRYPOINT ["/bin/bash", "-ci"]