From dff1a5163b71b1ed92918b7e991c38f6a5bf4d83 Mon Sep 17 00:00:00 2001
From: Rok Roskar <rokroskar@gmail.com>
Date: Wed, 18 Mar 2020 17:46:37 +0100
Subject: [PATCH] fix docker build

---
 Dockerfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index e80abd4..f7fe884 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,8 @@
 FROM renku/renkulab:renku0.9.1-py3.7-0.5.2
 
-# Uncomment and adapt if code is to be included in the image
+# For some reason need to be root to install from symlink
 COPY src /code/src
+RUN ln -s /code/src
 
 # Uncomment and adapt if your R or python packages require extra linux (ubuntu) software
 # e.g. the following installs apt-utils and vim; each pkg on its own line, all lines
@@ -15,8 +16,10 @@ COPY src /code/src
 # USER ${NB_USER}
 
 # install the python dependencies
+USER root
 COPY requirements.txt environment.yml /tmp/
 RUN conda env update -q -f /tmp/environment.yml && \
     /opt/conda/bin/pip install -r /tmp/requirements.txt && \
     conda clean -y --all && \
     conda env export -n "root"
+USER ${NB_USER}
-- 
GitLab