forked from nservant/HiC-Pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 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
FROM ubuntu:18.04
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
LABEL authors="Nicolas Servant" \
description="Docker image containing all requirements for the HiC-Pro pipeline"
## Install system tools
RUN apt-get update \
&& apt-get install -y build-essential \
wget \
unzip \
bzip2 \
gcc \
g++ && apt-get clean
## Install miniconda.
RUN wget https://repo.continuum.io/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh -O ~/anaconda.sh
RUN bash ~/anaconda.sh -b -p /usr/local/anaconda
RUN rm ~/anaconda.sh
ENV PATH /usr/local/anaconda/bin:$PATH
## Install all dependencies using conda
COPY environment.yml /
RUN conda env create -f /environment.yml && conda clean -a
ENV PATH /usr/local/anaconda/envs/HiC-Pro_v3.1.0/bin:$PATH
## Install HiCPro
RUN cd /tmp && \
echo "master.zip" | wget --base=http://github.com/nservant/HiC-Pro/archive/ -i - -O hicpro_latest.zip && \
unzip hicpro_latest.zip && \
cd HiC-Pro-master && \
make configure prefix=/ && \
make install && \
cd .. && \
rm -fr HiC-Pro*
RUN /HiC-Pro_3.1.0/bin/HiC-Pro -h