/
Dockerfile
42 lines (34 loc) · 1.13 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
## Emacs, make this -*- mode: sh; -*-
## start with the Debian testing
FROM debian:testing
## That's me
MAINTAINER Dirk Eddelbuettel edd@debian.org
## Remain current
RUN apt-get update -qq \
&& apt-get dist-upgrade -y
## Now install R and littler, and create a link for littler in /usr/local/bin
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
ed \
less \
littler \
locales \
r-base \
r-base-dev \
r-recommended \
vim-tiny \
wget \
&& ln -s /usr/share/doc/littler/examples/install.r /usr/local/bin/install.r \
&& ln -s /usr/share/doc/littler/examples/install2.r /usr/local/bin/install2.r \
&& install.r docopt
## Set a default CRAN Repo
RUN echo 'options("repos"="http://cran.rstudio.com", encoding="UTF-8")' >> /etc/R/Rprofile.site
## Set a default user. Available via runtime flag `--user docker`
RUN useradd docker
## Add user to 'staff' group, granting them write privileges to /usr/local/lib/R/site.library
RUN addgroup docker staff
## Configure default locale
RUN dpkg-reconfigure locales \
&& locale-gen C.UTF-8 \
&& /usr/sbin/update-locale LANG=C.UTF-8
ENV LC_ALL C.UTF-8