-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
50 lines (44 loc) · 1.24 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
# source Image
FROM ubuntu:20.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 \
autoconf \
autogen \
build-essential \
curl \
libbz2-dev \
libcurl4-openssl-dev \
libhts3 \
libhts-dev \
liblzma-dev \
libncurses5-dev \
libnss-sss \
libssl-dev \
libxml2-dev \
ncbi-blast+ \
r-base \
r-bioc-biostrings \
r-bioc-rsamtools \
r-cran-biocmanager \
r-cran-devtools \
r-cran-stringr \
r-cran-optparse \
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 "library(devtools); install_github('mhahsler/rBLAST')"
# 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"]