-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (31 loc) · 1004 Bytes
/
Dockerfile
File metadata and controls
35 lines (31 loc) · 1004 Bytes
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
FROM ubuntu:20.04
LABEL org.opencontainers.image.source https://github.com/su2code/Docker-Builds
ENV LANG C.UTF-8
RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y \
apt-utils \
python3 \
pkg-config \
python3-pip \
git \
build-essential \
cmake \
python3-numpy \
python3-scipy \
python3-mpi4py \
swig \
libopenmpi-dev \
libopenblas-dev \
openmpi-bin \
ccache \
petsc-dev \
python3-petsc4py \
python3-rtree \
&& rm -rf /var/lib/apt/lists/* \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \
&& /usr/sbin/update-ccache-symlinks \
&& echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY compileSU2.sh /compileSU2.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/compileSU2.sh"]