We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c411f3 commit 27cc0a5Copy full SHA for 27cc0a5
appendix
@@ -30,10 +30,8 @@ RUN mandb
30
RUN rm -rf ${REPO_DIR}/book ${REPO_DIR}/docs
31
32
# Set up behavior for child dockerfiles
33
-# Define NB_USER since that is not exported by the parent dockerfile (py-rocket-base)
34
-# This works because py-rocket-base sets user to NB_USER
35
-ONBUILD RUN export NB_USER=$(whoami)
36
-ONBUILD ENV NB_USER=${NB_USER}
+# Convert NB_USER to ENV (from ARG) so that it passes to the child dockerfile
+ENV NB_USER=${NB_USER}
37
38
ONBUILD USER root
39
ONBUILD COPY . /tmpbuild/
0 commit comments