-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
64 lines (55 loc) · 1.73 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM rocker/r-ver:3.5.3
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
"vim" \
"git" \
"wget" \
"bzip2" \
"parallel" \
"python" \
"ghostscript" \
"libcurl4-openssl-dev" \
"libssl-dev" \
"libxml2-dev" \
"libxslt1-dev" \
"zlib1g-dev" \
"libncurses5-dev" \
"libncursesw5-dev" \
"libexpat1-dev" \
"libjson-perl" \
"libhtml-tree-perl" \
"libbz2-dev" \
"liblzma-dev" \
"openmpi-bin" \
"libopenmpi-dev" \
"openssh-client" \
"openssh-server" \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
"cmake" \
"libgit2-dev" \
&& rm -rf /var/lib/apt/lists/*
# Include nanodisco toolbox
RUN mkdir /home/nanodisco
COPY code /home/nanodisco/code
# Install remaining dependencies from sources (nanopolish, bwa, samtools, R packages, MEME, bedtools).
COPY postInstall /
RUN bash /postInstall
# Define working directory.
WORKDIR /home/nanodisco
# Set environment variables.
ENV HOME /home/nanodisco
# Create folders for analysis
RUN mkdir /home/nanodisco/analysis
RUN mkdir /home/nanodisco/dataset
# Display start-up information
CMD echo "Usage: docker run -it --name <IMAGE_NAME> fanglab/nanodisco bash" && \
echo "" && \
echo "This will start a sub-shell within your current directory named /home/nanodisco." && \
echo "You can then run analysis, including:" && \
echo " Typing and fine-mapping methylation motif." && \
echo " Bin metagenomic contigs using methylation signal." && \
echo "" && \
echo "For more information, please consult https://github.com/fanglab/nanodisco"