-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (48 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
54 lines (48 loc) · 1.29 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Install package dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
python3-dev \
python3-pip \
python3-sphinx \
python3.12-venv \
sqlite3 \
build-essential \
libomp-dev \
cmake \
software-properties-common \
autoconf \
automake \
libtool \
pkg-config \
ca-certificates \
libssl-dev \
wget \
git \
curl \
language-pack-en \
locales \
locales-all \
nano \
gdb \
valgrind \
libboost-all-dev \
libpqxx-dev libpq-dev
# Create and enable virtual environment
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Install networkit inside venv
RUN pip install --upgrade pip
RUN pip install networkit matplotlib numpy pandas powerlaw networkx seaborn scipy scikit-learn psycopg sqlalchemy python-dotenv pyarrow db-to-sqlite psycopg2-binary
# compile C++ code
RUN mkdir /ak-graph
COPY . /ak-graph
RUN cd /ak-graph && cp .env.defaults .env
RUN cd /ak-graph/compairr && make install
RUN cd /ak-graph && make all
ENV PATH="/ak-graph/bin:$PATH"
RUN mkdir /work
ENV PATH="/work/bin:$PATH"
WORKDIR /ak-graph