forked from GeneDx/scramble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (42 loc) · 1.29 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
# source Image
FROM ubuntu:18.04
# set noninterative mode
ENV DEBIAN_FRONTEND noninteractive
# apt-get update and install global requirements
RUN apt-get clean all && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
libbz2-dev \
libcurl4-openssl-dev \
liblzma-dev \
libncurses5-dev \
libnss-sss \
libssl-dev \
r-base \
zlib1g-dev
# apt-get clean and remove cached source lists
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install global r requirements
RUN echo "r <- getOption('repos'); r['CRAN'] <- 'http://cran.us.r-project.org'; options(repos = r);" > ~/.Rprofile
RUN Rscript -e "install.packages('optparse')"
RUN Rscript -e "install.packages('stringr')"
RUN Rscript -e "source('https://bioconductor.org/biocLite.R'); biocLite('Biostrings')"
# install htslib
RUN curl -LO https://github.com/samtools/htslib/releases/download/1.9/htslib-1.9.tar.bz2 && \
tar xfj htslib-1.9.tar.bz2 && \
cd htslib-1.9 && \
autoheader && \
autoconf && \
./configure && \
make && \
make install
# install scramble
COPY . /app
RUN cd /app/cluster_identifier/src && \
make
RUN ln -s /app/cluster_identifier/src/build/cluster_identifier /usr/local/bin
# define default command
CMD ["Rscript"]