We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7fc8a commit 803a1c2Copy full SHA for 803a1c2
repo2docker/buildpacks/base.py
@@ -105,7 +105,9 @@
105
106
# Allow target path repo is cloned to be configurable
107
ARG REPO_DIR=${HOME}
108
-ENV REPO_DIR ${REPO_DIR}
+RUN [ ! -d ${REPO_DIR} ] \
109
+ && mkdir -p ${REPO_DIR} \
110
+ && chown -R ${NB_USER}:${NB_USER} ${REPO_DIR}
111
WORKDIR ${REPO_DIR}
112
RUN chown ${NB_USER}:${NB_USER} ${REPO_DIR}
113
@@ -144,7 +146,7 @@
144
146
USER root
145
147
148
# Copy stuff.
-COPY --chown={{ user }}:{{ user }} src/ ${REPO_DIR}
149
+COPY --chown={{ user }}:{{ user }} src/ ${REPO_DIR}/
150
151
# Run assemble scripts! These will actually turn the specification
152
# in the repository into an image.
0 commit comments