forked from BenevolentAI/DeeplyTough
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (63 loc) · 2.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
SHELL ["/bin/bash", "-c"]
# APT dependencies
RUN apt-get update && apt-get install -y \
apt-utils \
bzip2 \
ca-certificates \
git \
curl \
sysstat \
wget \
unzip \
# for fpocket
libnetcdf-dev && \
apt-get clean
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /miniconda && \
rm ~/miniconda.sh && \
/miniconda/bin/conda clean -tipsy && \
ln -s /miniconda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
ENV PATH=/miniconda/bin:${PATH}
# setup python 3 env
RUN conda update -y -q conda && \
conda create -y -n deeplytough python=3.6
# setup python 2 env
RUN conda create -y -n deeplytough_mgltools python=2.7
RUN conda install -y -n deeplytough_mgltools -c bioconda mgltools=1.5.6
# Source code
ADD . /app
WORKDIR /app
ENV PYTHONPATH=/app/deeplytough:$PYTHONPATH
# htmd
RUN apt-get -y install openbabel
RUN source activate deeplytough; \
curl -LO https://github.com/Acellera/htmd/archive/refs/tags/1.13.10.tar.gz && \
tar -xvzf 1.13.10.tar.gz && rm 1.13.10.tar.gz && cd htmd-1.13.10 && \
python setup.py install && \
cd .. && \
rm -rf htmd-1.13.10;
RUN source activate deeplytough; \
pip install --upgrade pip; \
pip install --no-cache-dir -r /app/requirements.txt \
pip install --ignore-installed llvmlite==0.28
# rot covariant convolutions (includes also the 'experiments' code)
RUN source activate deeplytough; \
git clone https://github.com/mariogeiger/se3cnn && \
cd se3cnn && \
git reset --hard 6b976bea4ea17e1bd5655f0f030c6e2bb1637b57 && \
mv experiments se3cnn; sed -i "s/exclude=\['experiments\*'\]//g" setup.py && \
python setup.py install && \
cd .. && \
rm -rf se3cnn;
RUN source activate deeplytough; \
git clone https://github.com/AMLab-Amsterdam/lie_learn && \
cd lie_learn && python setup.py install && cd .. && rm -rf lie_learn
# fpocket2
RUN curl -LO -k https://netcologne.dl.sourceforge.net/project/fpocket/fpocket2.tar.gz && \
tar -xvzf fpocket2.tar.gz && rm fpocket2.tar.gz && cd fpocket2 && \
sed -i 's/\$(LFLAGS) \$\^ -o \$@/\$\^ -o \$@ \$(LFLAGS)/g' makefile && make && \
mv bin/fpocket bin/fpocket2 && mv bin/dpocket bin/dpocket2 && mv bin/mdpocket bin/mdpocket2 && mv bin/tpocket bin/tpocket2
ENV PATH=/app/fpocket2/bin:${PATH}