From 2481a4c001b49daac6b5d6f1268d8b28149d7cde Mon Sep 17 00:00:00 2001
From: Perreal Guillaume <guillaume.perreal@irstea.fr>
Date: Mon, 14 Jan 2019 17:38:53 +0100
Subject: [PATCH] Save space by removing doc and tests from librairies.

---
 Dockerfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 1151032..0b28237 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,9 +5,11 @@ RUN R -e 'install.packages( \
     Ncpus='$(nproc)', \
     clean=1, \
     verbose=1 \
-    )'
+    )' \
+    && rm /usr/local/lib/R/*/*/{doc,html,help,unitTests}
 
-RUN R -e 'BiocManager::install("phyloseq", Ncpus='$(nproc)', clean=1)'
+RUN R -e 'BiocManager::install("phyloseq", Ncpus='$(nproc)', clean=1)' \
+    && rm /usr/local/lib/R/*/*/{doc,html,help,unitTests}
 
 ARG DUMB_INIT_VERSION=1.2.2
 RUN wget -O /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_amd64 \
-- 
GitLab