-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
46 lines (38 loc) · 1.23 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
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
## Note that there is not a PyTorch 2.0.1 image with CUDA 11.8
LABEL authors="Colby T. Ford <colby@tuple.xyz>"
## Set environment variables
ENV MPLCONFIGDIR /data/MPL_Config
ENV TORCH_HOME /data/Torch_Home
ENV TORCH_EXTENSIONS_DIR /data/Torch_Extensions
ENV DEBIAN_FRONTEND noninteractive
## Install system requirements
RUN apt update && \
apt-get install -y --reinstall \
ca-certificates && \
apt install -y \
git \
vim \
wget \
libxml2 \
libgl-dev \
libgl1
## Make directories
RUN mkdir -p /software/
WORKDIR /software/
## Install dependencies from Conda/Mamba
COPY environment.yaml /software/environment.yaml
RUN conda env create -f environment.yaml
RUN conda init bash && \
echo "conda activate GCDM-SBDD" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]
## Install GCDM-SBDD
RUN git clone https://github.com/BioinfoMachineLearning/GCDM-SBDD && \
cd GCDM-SBDD && \
pip install -e .
WORKDIR /software/GCDM-SBDD/
## Download Checkpoints
RUN wget https://zenodo.org/record/13375913/files/GCDM_SBDD_Checkpoints.tar.gz && \
tar -xzf GCDM_SBDD_Checkpoints.tar.gz && \
rm GCDM_SBDD_Checkpoints.tar.gz
CMD /bin/bash