BootStrap: docker From: rockylinux:8.5 %environment export PATH=/miniconda3/bin:$PATH %runscript exec vcontact "$@" %post dnf -y update dnf -y install scl-utils dnf -y install gcc-toolset-9 scl enable gcc-toolset-9 bash dnf -y install git cmake3 zlib-devel wget # Install miniconda wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh -b -f -p /miniconda3/ rm Miniconda3-latest-Linux-x86_64.sh # pull the conda functions in . /miniconda3/etc/profile.d/conda.sh and make pip, etc. available while in %post export PATH="/miniconda3/bin:$PATH" # CONDA install conda install \ --yes \ --channel conda-forge \ --strict-channel-priority \ pandas matplotlib folium gdal jupyter numba colorama geopy shapely tqdm pymongo geojson protobuf pyproj # Help conda resolving Python "import" conda update --all # PIP install pip install \ --no-deps \ gtfs-realtime-bindings pyspark mpire # OSRM git clone https://github.com/Project-OSRM/osrm-backend.git cd osrm-backend mkdir -p build cd build cmake3 .. -DENABLE_MASON=ON -DCMAKE_CXX_COMPILER=/opt/rh/gcc-toolset-9/root/usr/bin/g++ make make install