Skip to content

Commit 57426af

Browse files
authored
Update Dockerfile
1 parent 4af63b9 commit 57426af

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

python_docker_for_ubuntu/Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,27 @@ RUN apt-get -y update && \
3131
gfortran \
3232
mysql-client-5.7 \
3333
sqlite3 \
34+
littler \
35+
r-cran-littler \
3436
r-base \
3537
r-base-dev \
38+
r-recommended \
3639
libsqlite3-dev
37-
40+
3841
RUN locale-gen en_US.UTF-8
3942
RUN dpkg-reconfigure locales
4043

44+
RUN echo 'options(repos = c(CRAN = "https://cran.rstudio.com/"), download.file.method = "libcurl")' >> /etc/R/Rprofile.site \
45+
&& echo 'source("/etc/R/Rprofile.site")' >> /etc/littler.r \
46+
&& ln -s /usr/share/doc/littler/examples/install.r /usr/local/bin/install.r \
47+
&& ln -s /usr/share/doc/littler/examples/install2.r /usr/local/bin/install2.r \
48+
&& ln -s /usr/share/doc/littler/examples/installGithub.r /usr/local/bin/installGithub.r \
49+
&& ln -s /usr/share/doc/littler/examples/testInstalled.r /usr/local/bin/testInstalled.r \
50+
&& install.r docopt \
51+
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds \
52+
&& rm -rf /var/lib/apt/lists/*
53+
54+
4155
RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER && \
4256
groupadd $NB_GROUP && \
4357
usermod -a -G $NB_GROUP $NB_USER

0 commit comments

Comments
 (0)