-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile_nvidia
More file actions
53 lines (49 loc) · 1.6 KB
/
Dockerfile_nvidia
File metadata and controls
53 lines (49 loc) · 1.6 KB
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
47
48
49
50
51
52
53
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y upgrade \
&& apt-get install -y -qq --no-install-recommends \
libglvnd0 \
libgl1 \
libglx0 \
libegl1 \
libxext6 \
libx11-6 \
mesa-utils \
ocl-icd-libopencl1 \
opencl-headers \
clinfo \
git \
wget \
g++ \
libglib2.0.0 \
libqt5x11extras5 \
freeglut3-dev \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh; \
mkdir /root/.conda; \
bash Miniconda3-latest-Linux-x86_64.sh -b; \
rm -f Miniconda3-latest-Linux-x86_64.sh; \
echo "Successfully installed " conda --version; \
conda init bash; \
. /root/.bashrc; \
conda create -n cellmodeller; \
conda activate cellmodeller; \
conda install python=3.8 pip; \
pip install pyqt5;
WORKDIR /
RUN conda init bash; \
. /root/.bashrc; \
conda activate cellmodeller; \
git clone https://github.com/HaseloffLab/CellModeller.git; \
cd CellModeller && pip install -e .;
RUN echo 'conda activate cellmodeller \n\
python /CellModeller/Scripts/CellModellerGUI.py \n\
alias cmgui="python /CellModeller/Scripts/CellModellerGUI.py"' >> /root/.bashrc
RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
RUN ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute