-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerFile
38 lines (30 loc) · 1.55 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
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel_22-04.html
# FROM nvcr.io/nvidia/pytorch:22.04-py3
# RUN conda install -y -c openbabel openbabel
# RUN conda install -y -c dglteam dgl-cuda11.6
# RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# COPY ./requirements.txt /app/requirements.txt
# RUN pip install -r /app/requirements.txt
# COPY ./lib/pydock-0.4-cp38-cp38-manylinux_2_31_x86_64.whl /app/pydock-0.4-cp38-cp38-manylinux_2_31_x86_64.whl
# RUN pip install /app/pydock-0.4-cp38-cp38-manylinux_2_31_x86_64.whl
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel_22-09.html
FROM nvcr.io/nvidia/pytorch:22.09-py3
# Install Python Requirements
RUN pip install dgl -f https://data.dgl.ai/wheels/cu118/repo.html
# RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
# Install build-essential
RUN apt-get update && apt-get install -y build-essential
# Install pydock
RUN cd /app && git clone https://github.com/gitabtion/dockcpp.git
RUN cd /app/dockcpp && mkdir build && cd build && \
cmake .. && make install-python-package && \
cd ../../
# Install OpenBabel
RUN cd /app && git clone https://github.com/openbabel/openbabel.git
RUN cd /app/openbabel && mkdir build && cd build && \
cmake .. -DPYTHON_BINDINGS=ON && make && make install && \
cd ../../
RUN apt-get update && apt-get install -y swig
RUN pip install openbabel