-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 903 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
# Builds a Docker image for Elmer in a Desktop environment
# with Ubuntu and LXDE.
#
# The built image can be found at:
# https://hub.docker.com/r/unifem/elmer-desktop
#
# Authors:
# Xiangmin Jiao <[email protected]>
FROM unifem/desktop:latest
LABEL maintainer "Xiangmin Jiao <[email protected]>"
USER root
WORKDIR /tmp
# Install Elmer and some additional tools (Gmsh, gfortran, etc.)
RUN apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa && \
apt-get update && \
apt-get install -y --no-install-recommends \
gfortran \
gmsh \
elmerfem-csc && \
echo "@ElmerGUI" >> $DOCKER_HOME/.config/lxsession/LXDE/autostar && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
########################################################
# Customization for user and location
########################################################
WORKDIR $DOCKER_HOME
USER root