Dockerfile 1.57 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
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
11

12
RUN wget -P /tmp \
13
    "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
14
15
    && bash /tmp/Miniforge3-Linux-x86_64.sh -b -p /opt/conda \
    && rm /tmp/Miniforge3-Linux-x86_64.sh
16
17
18
19
20
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
21
RUN mamba env update -n base --file /opt/openfold/environment.yml && mamba clean --all
jnwei's avatar
jnwei committed
22
RUN export LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
23
24
25
26
27
28
29
30

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
31
32
WORKDIR /opt/openfold
RUN python3 setup.py install