Skip to content

Commit 267965f

Browse files
committed
Updated to make the CHOWN command run in the base image
1 parent 208af06 commit 267965f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM csharpfritz/fritznotebook:1
1+
# FROM fritznotebook:2
2+
FROM csharpfritz/fritznotebook:2
23

34
# Set the environment variables
45
ARG NB_USER=jovyan
@@ -11,6 +12,6 @@ ENV HOME /home/${NB_USER}
1112
WORKDIR ${HOME}/notebooks/
1213

1314
# Copy notebooks
14-
COPY ./notebooks/ ${HOME}/notebooks/
15-
RUN chown -R ${NB_UID} ${HOME}
15+
COPY --chown=${NB_UID} ./notebooks/ ${HOME}/notebooks/
16+
# RUN chown -R ${NB_UID} ${HOME}
1617
USER ${USER}

base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ ENV DOTNET_TRY_CLI_TELEMETRY_OPTOUT=false
8181

8282
# # Copy notebooks
8383
# COPY ./notebooks/ ${HOME}/notebooks/
84-
# RUN chown -R ${NB_UID} ${HOME}
84+
RUN chown -R ${NB_UID} ${HOME}
8585
# USER ${USER}

0 commit comments

Comments
 (0)