forked from magnetotellurics/ModEM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (31 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
37 lines (31 loc) · 1.15 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
FROM ubuntu:latest
RUN apt-get update
RUN apt-get -y install gcc
RUN apt-get -y install g++
RUN apt-get -y install gfortran
RUN apt-get -y install gdb
RUN apt-get -y install valgrind
RUN apt-get -y install libblas-dev
RUN apt-get -y install liblapack-dev
RUN apt-get -y install make
RUN apt-get -y install wget
RUN apt-get -y install python3
RUN apt-get -y install python3-pip
RUN apt-get -y install pipx
RUN apt-get -y install vim
RUN apt-get -y install git
RUN apt-get -y install openmpi-bin openmpi-common libopenmpi-dev
RUN useradd -m -r -g users -s /bin/bash modem
ENV LD_LIBRARY_PATH=/usr/local/lib/
# For Python Installs
ENV PATH="$PATH:/root/.local/bin"
COPY . /home/modem/ModEM
RUN chown -R modem /home/modem/ModEM
RUN chgrp -R users /home/modem/ModEM
USER modem
WORKDIR /home/modem/ModEM/f90
# Make SP2 MPI
RUN ./CONFIG/configure -m mpi -l MF -g release Makefile gfortran && make && mv Mod3DMT Mod3DMT_MF && make clean
RUN ./CONFIG/configure -m mpi -l SP -g release Makefile gfortran && make && mv Mod3DMT Mod3DMT_SP && make clean
RUN ./CONFIG/configure -m mpi -l SP2 -g release Makefile gfortran && make && mv Mod3DMT Mod3DMT_SP2 && make clean
WORKDIR /home/modem/