-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (29 loc) · 1.63 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
# devel version needed for compilation
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV WORKDIR=/root/workspace
ENV NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES:-all}
ENV CONDA_ENV=sagess
# Install essential packages and Miniconda
RUN apt-get update && \
apt-get install -y software-properties-common wget && \
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
ENV PATH=/opt/conda/bin:$PATH
RUN apt-get update && \
apt-get install -y libgdk-pixbuf2.0-0 libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgtk-3-0 libx11-6 libxcursor1 libxext6 libxrender1 libffi7 libgirepository-1.0-1 && \
rm -rf /var/lib/apt/lists/* && \
conda create -y -n $CONDA_ENV python=3.10 && \
echo "source activate $CONDA_ENV" > ~/.bashrc && \
conda run -n $CONDA_ENV conda install -c conda-forge graph-tool && \
conda run -n $CONDA_ENV conda clean -y --all
COPY ./requirements.txt ./requirements.txt
RUN conda run -n $CONDA_ENV pip3 install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118 && \
conda run -n $CONDA_ENV pip3 install torch-geometric torch-sparse torch-scatter torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.2.0+cu118.html && \
conda run -n $CONDA_ENV pip3 install -r requirements.txt && \
conda run -n $CONDA_ENV conda clean -y --all
WORKDIR $WORKDIR
CMD ["bash"]
# RUN THIS COMMAND AFTER CONTAINER IS CREATED
# g++ -O2 -std=c++11 -o ./src/analysis/orca/orca ./src/analysis/orca/orca.cpp