-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
33 lines (27 loc) · 1.06 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
FROM continuumio/miniconda3
RUN cat /etc/apt/sources.list
RUN sed --in-place --regexp-extended 's|http://|https://|g' /etc/apt/sources.list
RUN cat /etc/apt/sources.list
RUN apt update -qy && apt-get install -y make gcc g++ libstdc++6
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
#TODO do not use root in docker container
# RUN useradd -ms /bin/bash t4c
# USER t4c
# WORKDIR /home/t4c
ADD environment.yaml .
ADD install-requirements.txt .
ADD install-extras-torch-geometric.txt .
ADD t4c22/misc/check_torch_geometric_setup.py .
# https://docs.anaconda.com/anaconda/install/silent-mode/
RUN eval "$(/opt/conda/bin/conda shell.bash hook)" && \
conda init bash && \
source ~/.bashrc && \
printenv && \
export CONDA_ENVS_PATH=$PWD && \
conda env update -f environment.yaml && \
conda env list && \
conda activate t4c22 && \
python -m pip install -r install-extras-torch-geometric.txt -f https://data.pyg.org/whl/torch-1.11.0+cpu.html && \
python --version && \
python -c 'import torch_geometric' && \
python check_torch_geometric_setup.py