-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
41 lines (34 loc) · 1.8 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
# based on debian 8 (2014)
FROM debian:jessie-slim
# provide information about the maintainer of the image
MAINTAINER Frédéric M. Vanwindekens ([email protected])
# Setting up
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV DISPLAY :0
# Installing systems dependencies
RUN apt-get update \
&& apt-get install -qqy wget \
&& apt-get install -qqy x11-apps \
&& apt-get install -qqy libgtk2.0-dev
## Installing a basic R + minimal dependencies for RQDA
RUN apt-get install -qqy r-base \
&& wget -P $HOME https://cran.r-project.org/src/contrib/cairoDevice_2.24.tar.gz \
&& wget -P $HOME https://cran.r-project.org/src/contrib/gWidgets_0.0-54.tar.gz \
&& wget -P $HOME https://cran.r-project.org/src/contrib/gWidgetsRGtk2_0.0-86.tar.gz \
&& wget -P $HOME https://cran.r-project.org/src/contrib/Archive/RQDA/RQDA_0.2-8.tar.gz \
&& wget -P $HOME https://cran.r-project.org/src/contrib/Archive/RSQLite/RSQLite_1.0.0.tar.gz \
&& wget -P $HOME https://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.3.1.tar.gz \
&& wget -P $HOME https://cran.r-project.org/src/contrib/Archive/igraph/igraph_0.6.tar.gz \
&& R CMD INSTALL --no-test-load $HOME/cairoDevice_2.24.tar.gz \
&& R CMD INSTALL $HOME/gWidgets_0.0-54.tar.gz \
&& apt-get install -qqy r-cran-RGtk2 \
&& R CMD INSTALL $HOME/DBI_0.3.1.tar.gz \
&& R CMD INSTALL $HOME/RSQLite_1.0.0.tar.gz \
&& R CMD INSTALL $HOME/igraph_0.6.tar.gz \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds \
&& rm -rf /var/lib/apt/lists/*
## These installations need x11 running and will be executed when running the image
RUN echo 'R CMD INSTALL --no-test-load $HOME/gWidgetsRGtk2_0.0-86.tar.gz && R CMD INSTALL --no-test-load $HOME/RQDA_0.2-8.tar.gz' >> $HOME/.bashrc
RUN echo 'library(RQDA)' > $HOME/startrqda.R
CMD sh $HOME/.bashrc && R