-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_serving
38 lines (30 loc) · 1.39 KB
/
Dockerfile_serving
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
FROM continuumio/miniconda3:4.9.2
SHELL ["/bin/bash", "-c"]
RUN apt-get update --allow-releaseinfo-change && apt-get -y install gcc g++ make curl git
RUN conda install -y -c conda-forge mamba numpy=1.19 -n base
RUN conda install -y -c pytorch pytorch=1.9.0 torchserve=0.3.1 cpuonly
RUN mamba install -y -c conda-forge openjdk=11 rdkit=2021.03.1
RUN pip install setuptools tqdm OpenNMT-py==1.2.0 dgl==0.9.1 networkx==2.5 pebble gdown
RUN pip install dgllife==0.2.6
RUN pip install epam.indigo
ENV CUDA_CODE cpu
ENV GPU_FLAG 0
ENV TORCH_VER 1.9.0
ENV DGLBACKEND pytorch
RUN pip install torch-scatter==2.0.9 -f https://data.pyg.org/whl/torch-${TORCH_VER}+${CUDA_CODE}.html
RUN pip install torch-sparse==0.6.12 -f https://data.pyg.org/whl/torch-${TORCH_VER}+${CUDA_CODE}.html
RUN pip install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-${TORCH_VER}+${CUDA_CODE}.html
RUN pip install torch-spline-conv==1.2.1 -f https://data.pyg.org/whl/torch-${TORCH_VER}+${CUDA_CODE}.html
RUN pip install torch-geometric==2.2
RUN pip install torch-model-archiver
WORKDIR /app
COPY . /app/openretro
WORKDIR /app/openretro
# GLN installation -- CPU only
RUN cd ./models/gln_model && pip install -e .
# RDChiral installation
# Deprecated: RUN pip install -e "git://github.com/connorcoley/rdchiral.git#egg=rdchiral"
RUN pip install rdchiral
EXPOSE 8080 8081 8082
# Mask out GPUs temporarily, just in case
ENV CUDA_VISIBLE_DEVICES 10