diff --git a/Dockerfile b/Dockerfile
index 1151032651df419b03000ace0545ff23b56058f9..0b28237dca0a1aec83972e73b747e16cf60f3374 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 \