From 55b334be52046de4efc343f557b7707cf72c79de Mon Sep 17 00:00:00 2001
From: Perreal Guillaume <guillaume.perreal@irstea.fr>
Date: Wed, 23 Jan 2019 10:31:12 +0100
Subject: [PATCH] Minor docker changes.

---
 Dockerfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 8998050..b81aae4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
 ARG R_TAG=3.5.2
-FROM rocker/shiny:$R_TAG AS builder
+FROM rocker/shiny:$R_TAG
 
 # Install and build R packages from CRAN and Bioconductor, removing documentation and tests
 RUN R -e 'install.packages( \
@@ -32,12 +32,13 @@ ADD demo /tmp/demo
 RUN cd /tmp/demo \
     && R -f make-demo.R \
     && mkdir -p /srv/shiny-server/demo \
-    && ls -la && cp demo.RData /srv/shiny-server/demo
+    && ls -la && cp demo.RData /srv/shiny-server/demo \
+    && rm -rf /tmp/demo
 
 # Fix file permissions
 RUN chmod -R a+rX /srv/shiny-server/ \
     && chgrp shiny /var/lib/shiny-server \
     && chmod g+rwxs /var/lib/shiny-server
 
-# Run with a non-privileged user
+# Run with a unprivileged user
 USER shiny
-- 
GitLab