forked from GeneDx/scramble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.centos
42 lines (37 loc) · 1.09 KB
/
Dockerfile.centos
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
# source Image
FROM centos:7
# yum upgrade and install global requirements
RUN yum upgrade -y && \
yum install -y \
epel-release && \
yum install -y \
autoconf \
bzip2 \
bzip2-devel \
libcurl-devel \
libcrypto-devel \
openssl-devel \
R \
xz-devel \
zlib-devel
# 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"]