-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (56 loc) · 1.69 KB
/
Copy pathDockerfile
File metadata and controls
62 lines (56 loc) · 1.69 KB
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
# base image
FROM ubuntu:xenial
# metadata
LABEL base.image="ubuntu:xenial"
LABEL dockerfile.version="1"
LABEL description="An r environment and script for generating a genome cluster report"
LABEL website="https://github.com/kevinlibuit/wgs_competency"
LABEL maintainer="Kevin Libuit"
LABEL maintainer.email="kevin.libuit@dgs.virginia.gov"
# install ubuntu dependencies
RUN apt-get update && \
apt-get -y install software-properties-common \
apt-transport-https \
ca-certificates \
gnupg \
curl \
libcurl4-openssl-dev \
libssl-dev \
libxml2 \
libxml2-dev \
pandoc \
pandoc-citeproc \
wget \
git \
imagemagick \
libmagick++-dev \
texlive-latex-base \
texlive-fonts-recommended \
texlive-latex-recommended \
texlive-latex-extra \
texlive-xetex \
fonts-roboto
# add keys and ppa; update sources; install latest version of R
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9 && \
add-apt-repository ppa:marutter/c2d4u3.5 && \
echo "deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/" >> /etc/apt/sources.list && \
apt-get update && apt-get -y upgrade && apt-get -y install r-base \
r-base-dev
# install R packages
RUN R -e "install.packages(c('cowplot',\
'ggplot2',\
'ggsci',\
'grid',\
'gridExtra',\
'optparse',\
'xtable'), repos = 'http://cran.us.r-project.org')"
# install report repository
RUN git clone -n https://github.com/kevinlibuit/wgs_competency.git && \
cd wgs_competency/ && \
git checkout 0ba8d39 && \
chmod +x /wgs_competency/create_competency_report.sh && \
mkdir data
WORKDIR /data
ENV PATH="/wgs_competency:$PATH"\
LC_ALL=C