|
| 1 | +ARG PYTORCH_TAG=2.3.0-cuda11.8-cudnn8-devel |
| 2 | +FROM pytorch/pytorch:${PYTORCH_TAG} |
| 3 | + |
| 4 | +# Add system dependencies |
| 5 | +RUN apt-get update \ |
| 6 | + # Update image |
| 7 | + && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ |
| 8 | + software-properties-common \ |
| 9 | + curl \ |
| 10 | + gnupg \ |
| 11 | + && echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu jammy main" > /etc/apt/sources.list.d/ubuntu-toolchain-r-test.list \ |
| 12 | + && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F \ |
| 13 | + && apt-get update \ |
| 14 | + # Install essential dependencies |
| 15 | + && apt-get install --no-install-recommends -y \ |
| 16 | + build-essential \ |
| 17 | + git \ |
| 18 | + wget \ |
| 19 | + libxrender1 \ |
| 20 | + libxtst6 \ |
| 21 | + libxext6 \ |
| 22 | + libxi6 \ |
| 23 | + kalign \ |
| 24 | + gcc-11 \ |
| 25 | + g++-11 \ |
| 26 | + # Install Git LFS |
| 27 | + && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \ |
| 28 | + && apt-get install --no-install-recommends -y git-lfs \ |
| 29 | + && git lfs install \ |
| 30 | + # Configure gcc/g++ versions |
| 31 | + && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \ |
| 32 | + && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 \ |
| 33 | + # Clean up dependencies |
| 34 | + && rm -rf /var/lib/apt/lists/* \ |
| 35 | + && apt-get autoremove -y \ |
| 36 | + && apt-get clean |
| 37 | + |
| 38 | +# Install Conda dependencies |
| 39 | +RUN conda install -y -c conda-forge python=3.10 gcc=11.4.0 gxx=11.4.0 libstdcxx=14.1.0 libstdcxx-ng=14.1.0 libgcc=14.1.0 libgcc-ng=14.1.0 compilers=1.5.2 libconeangle=0.1.1 pybind11=3.0.0 && \ |
| 40 | + conda clean -afy |
| 41 | + |
| 42 | +# Set work directory |
| 43 | +WORKDIR /app/posebench |
| 44 | + |
| 45 | +# Clone and install the package + requirements |
| 46 | +ARG GIT_TAG=main |
| 47 | +RUN git clone https://github.com/BioinfoMachineLearning/posebench . --branch ${GIT_TAG} \ |
| 48 | + && conda env update -f environments/posebench_environment.yaml \ |
| 49 | + && pip install -e . \ |
| 50 | + && pip install numpy==1.26.4 --no-dependencies \ |
| 51 | + && pip install prody==2.4.1 --no-dependencies \ |
| 52 | + && conda clean -afy \ |
| 53 | + && rm -rf /root/.cache/pip |
0 commit comments