-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (40 loc) · 1.92 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
44
FROM ubuntu:20.04
RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse" > /etc/apt/sources.list && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse" >> /etc/apt/sources.list && \
apt-get update -y
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get install -y tzdata && \
apt-get install -y keyboard-configuration && \
apt-get install -y software-properties-common
RUN add-apt-repository main && \
add-apt-repository universe && \
add-apt-repository restricted && \
add-apt-repository multiverse && \
apt-get update -y
RUN apt-get install -y build-essential && \
apt-get install -y zlib1g-dev libncurses5-dev && \
apt-get install -y libgdbm-dev libnss3-dev libssl-dev && \
apt-get install -y libreadline-dev libffi-dev wget && \
apt-get install -y --no-install-recommends && \
apt-get install -y python3-dev && \
apt-get install -y python3-pip && \
apt-get install -y python3-wheel && \
apt-get install -y python3-setuptools && \
apt-get install -y libblas-dev && \
apt-get install -y liblapack-dev && \
apt-get install -y liblapacke-dev && \
apt-get install -y git && \
apt-get install -y ImageMagick* && \
apt-get install -y xorg && \
apt-get install -y libgfortran4 && \
apt-get install -y libopenmpi-dev && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN python3 --version
RUN pip3 --version
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install mpi4py --no-cache-dir
RUN echo "Hello from OCARINA base image"
LABEL org.opencontainers.image.source="https://github.com/miguelcarcamov/ocarina"
LABEL org.opencontainers.image.description="Base container image for OCARINA"
LABEL org.opencontainers.image.licenses=GPL3