-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (39 loc) · 1.51 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
# Use FEniCS base image
FROM quay.io/fenicsproject/stable:2019.1.0.r3
# Descriptions
LABEL maintainer="Lambert Theisen <[email protected]>"
LABEL description="Linearized R13 Equations Solver Environment"
# Specify software versions
ENV GMSH_VERSION 4.4.0
# Download Install Gmsh SDK with dependecies from Github's dolfinx Dockerfile
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get -qq update && \
# apt-get -yq --with-new-pkgs -o Dpkg::Options::="--force-confold" upgrade && \ # skip 110 package updates/upgrades
apt-get -y install \
libglu1 \
libxcursor-dev \
libxinerama1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN cd /usr/local && \
wget -nc http://gmsh.info/bin/Linux/gmsh-${GMSH_VERSION}-Linux64-sdk.tgz && \
tar -xf gmsh-${GMSH_VERSION}-Linux64-sdk.tgz
ENV PATH=/usr/local/gmsh-${GMSH_VERSION}-Linux64-sdk/bin:$PATH
# Install additional programs
RUN \
apt-get update && \
apt-get install -y \
numdiff \
htop \
imagemagick
# Install any needed packages specified in requirements.txt
# RUN pip install --trusted-host pypi.python.org -r requirements.txt
WORKDIR /fenicsR13
ADD ./requirements.txt /fenicsR13/requirements.txt
RUN pip install -r /fenicsR13/requirements.txt
# Install the fenicsR13 package (puts it into the PATH)
ADD . /fenicsR13
RUN pip install --editable /fenicsR13/.
# Replace default FEniCS Docker WELCOME screen with custom WELCOME screen
ADD WELCOME .
RUN echo "Built: $(date)" >> WELCOME