-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·37 lines (24 loc) · 1.18 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
FROM debian
MAINTAINER Kristian Peters <[email protected]>
LABEL Description="Execute an R script inside docker."
# Add scripts folder to container
ADD https://raw.githubusercontent.com/korseby/docker-plainr/master/rscript.r /scripts/
# add cran R backport
RUN apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480
RUN echo "deb http://cran.uni-muenster.de/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list
# update & upgrade sources
RUN apt-get -y update
RUN apt-get -y dist-upgrade
# install packages
RUN apt-get -y install r-base netcdf-bin libnetcdf-dev libdigest-sha-perl
# install development files needed for xcms
RUN apt-get -y install git xorg-dev libglu1-mesa-dev freeglut3-dev libgomp1 libxml2-dev gcc-4.9 g++-4.9 libgfortran-4.9-dev libcurl4-gnutls-dev
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
RUN update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-4.9 50
# clean up
RUN apt-get -y clean && apt-get -y autoremove && rm -rf /var/lib/{cache,log}/ /tmp/* /var/tmp/*
# install Bioconductor
RUN Rscript /scripts/rscript.r
# Define Entry point script
ENTRYPOINT ["R"]