-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 939 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
#Dockerfile for baytap08
# Build baytap08
FROM centos:7 AS compile-baytap
RUN yum -y upgrade \
&& yum -y group install "Development Tools" \
&& yum -y install wget vim
WORKDIR /opt
# Download the program and modify the makefile to run/compile
RUN cd /opt/ \
&& wget https://igppweb.ucsd.edu/~agnew/Baytap/baytap08.tar.gz \
&& tar -xzf baytap08.tar.gz \
&& rm baytap08.tar.gz \
&& cd baytap08/src/ \
&& echo "BIN=../bin/" >> tempfile \
&& echo " " >> tempfile \
&& echo "FTN = gfortran" >> tempfile \
&& echo " " >> tempfile \
&& echo "FFLAGS = -O2 -Wunused -Wno-globals -fno-f2c -fno-automatic -fno-backslash" >> tempfile \
&& echo " " >> tempfile \
&& echo "baytap08: baytap08.f" >> tempfile \
&& echo -e "\t\$(FTN) \$(FFLAGS) baytap08.f -o \$(BIN)baytap08" >> tempfile \
&& mv tempfile makefile \
&& make
# Add baytap to path
ENV PATH="/opt/baytap08/bin:${PATH}"