-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (33 loc) · 1.1 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
# Use the latest LTS version of Ubuntu as the base image
FROM ubuntu:22.04
# Set environment variables to prevent prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Update package list and install necessary packages
RUN apt-get update && apt-get install -y \
gfortran \
mpich \
libblas-dev \
wget \
git \
make \
vim \
unzip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Set a working directory inside the container
WORKDIR /workspace
# Create a bin directory
RUN mkdir -p /workspace/bin
RUN echo 'export PATH="$PATH:/workspace/bin"' >> /root/.bashrc
# Download the specified file
RUN wget https://www.ssisc.org/lis/dl/lis-2.1.6.zip
# Unzip the downloaded file
RUN unzip lis-2.1.6.zip && rm lis-2.1.6.zip
# Install LIS library
RUN cd lis-2.1.6 && ./configure --enable-mpi --enable-f90 && make && make install
# Download Andromeda
RUN git clone https://github.com/WildSmilodon/Andromeda.git
# Compile Andromeda
RUN cd Andromeda/src && make
RUN cp Andromeda/bin/Andromeda bin/Andromeda-1.7-o
# Default command to start a bash shell
CMD ["/bin/bash"]