-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
47 lines (35 loc) · 1.41 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
42
43
44
45
46
ARG CUDA="10.0"
ARG CUDNN="7"
FROM nvidia/cuda:${CUDA}-cudnn${CUDNN}-devel-ubuntu16.04
# install basics
RUN apt-get update -y \
&& apt-get install -y apt-utils git curl ca-certificates bzip2 cmake tree htop bmon iotop g++ \
&& apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev \
&& apt-get install wget
# Install Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda \
&& rm Miniconda3-latest-Linux-x86_64.sh
# Install EMAN2
RUN wget wget https://cryoem.bcm.edu/cryoem/static/software/release-2.31/eman2.31_sphire1.3.linux64.sh \
&& bash eman2.31_sphire1.3.linux64.sh -b -p /EMAN2 \
&& rm eman2.31_sphire1.3.linux64.sh
ENV PATH=/miniconda/bin/conda:$PATH
ENV PATH=/EMAN2/bin/e2pdb2mrc.py:$PATH
RUN ls
# Create a Python 3.7 environment
RUN conda install -y conda-build \
&& conda create -y --name py37 python=3.7 \
&& conda clean -ya \
&& conda init
ENV CONDA_DEFAULT_ENV=py37
ENV CONDA_PREFIX=/miniconda/envs/$CONDA_DEFAULT_ENV
ENV PATH=$CONDA_PREFIX/bin:$PATH
ENV CONDA_AUTO_UPDATE_CONDA=false
RUN git clone https://github.com/JelenaBanjac/protein-reconstruction.git
RUN cd protein-reconstruction \
&& conda env create -f environment.yml
RUN echo "source activate protein_reconstruction" > ~/.bashrc \
&& pip install tensorflow-gpu==2.0.0 \
&& pip install tensorflow-graphics-gpu
WORKDIR /protein-reconstruction