-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
41 lines (34 loc) · 1.04 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
# FROM nvcr.io/nvidia/pytorch:21.06-py3
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime
LABEL authors="Colby T. Ford <[email protected]>"
## 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 bio-diffusion" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]
## Install bio-diffusion
RUN git clone https://github.com/BioinfoMachineLearning/bio-diffusion && \
cd bio-diffusion && \
pip install -e .
WORKDIR /software/bio-diffusion/
CMD /bin/bash