-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
25 lines (19 loc) · 743 Bytes
/
Copy pathdockerfile
File metadata and controls
25 lines (19 loc) · 743 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
FROM python:3.11
# Taken from: https://github.com/Repast/repast4py/blob/master/Dockerfile
RUN apt-get update && \
apt-get install -y mpich \
&& rm -rf /var/lib/apt/lists/*
# Install the python requirements
COPY ./requirements.txt ./requirements.txt
RUN pip install -r ./requirements.txt
# Install repast4py
RUN env CC=mpicxx CXX=mpicxx pip install repast4py
# RUN apt-get update \
# apt-get install -y git
# RUN mkdir -p /repos && \
# cd /repos && \
# git clone --depth 1 https://github.com/networkx/networkx-metis.git && \
# cd /repos/networkx-metis && \
# python setup.py install
# Set the PYTHONPATH to include the /repast4py folder which contains the core folder
ENV PYTHONPATH=/repast4py/src