Dockerfile 1.72 KB
Newer Older
jnwei's avatar
jnwei committed
1
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
2

3
# metainformation
jnwei's avatar
jnwei committed
4
5
LABEL org.opencontainers.image.version = "2.0.0"
LABEL org.opencontainers.image.authors = "OpenFold Team"
6
7
LABEL org.opencontainers.image.source = "https://github.com/aqlaboratory/openfold"
LABEL org.opencontainers.image.licenses = "Apache License 2.0"
jnwei's avatar
jnwei committed
8
LABEL org.opencontainers.image.base.name="docker.io/nvidia/cuda:12.4.1-devel-ubuntu22.04"
9

jnwei's avatar
jnwei committed
10
11
12
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
RUN sudo dpkg -i cuda-keyring_1.0-1_all.deb

jnwei's avatar
jnwei committed
13
RUN apt-get update && apt-get install -y wget libxml2 cuda-minimal-build-12-4 libcusparse-dev-12-4 libcublas-dev-12-4 libcusolver-dev-12-4 git
Sam DeLuca's avatar
Sam DeLuca committed
14

15
RUN wget -P /tmp \
16
    "https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Miniforge3-Linux-x86_64.sh" \
Matthew W. Thompson's avatar
Matthew W. Thompson committed
17
18
    && bash /tmp/Miniforge3-Linux-x86_64.sh -b -p /opt/conda \
    && rm /tmp/Miniforge3-Linux-x86_64.sh
19
20
21
22
23
ENV PATH /opt/conda/bin:$PATH

COPY environment.yml /opt/openfold/environment.yml

# installing into the base environment since the docker container wont do anything other than run openfold
Matthew W. Thompson's avatar
Matthew W. Thompson committed
24
RUN mamba env update -n base --file /opt/openfold/environment.yml && mamba clean --all
jnwei's avatar
jnwei committed
25
RUN export LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
26
27
28
29
30
31
32
33

COPY openfold /opt/openfold/openfold
COPY scripts /opt/openfold/scripts
COPY run_pretrained_openfold.py /opt/openfold/run_pretrained_openfold.py
COPY train_openfold.py /opt/openfold/train_openfold.py
COPY setup.py /opt/openfold/setup.py
RUN wget -q -P /opt/openfold/openfold/resources \
    https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt
34
35
WORKDIR /opt/openfold
RUN python3 setup.py install