From 4853d2d8f89e2d01747db29323494930db2f0433 Mon Sep 17 00:00:00 2001 From: Piti Ongmongkolkul Date: Thu, 30 Nov 2017 15:27:47 +0700 Subject: [PATCH] Update Dockerfile chown so the nodebook is writable and copy only code --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b0bf333..92fb63bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,9 @@ LABEL 8888.port.launchbot.io="Jupyter Notebook" # Set the working directory WORKDIR /usr/workdir -COPY . /usr/workdir +COPY code ${WORKDIR} +RUN chown -R ${NB_USER} ${WORKDIR} +USER ${NB_USER} # Expose the notebook port EXPOSE 8888