Skip to content

Commit

Permalink
Change permissions so the tmp files can be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Aug 30, 2024
1 parent 750c342 commit da8f375
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion images/julia-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ USER ${NB_UID}
COPY scripts/setup-julia-packages.bash /tmp/setup-julia-packages.bash
COPY julia-packages.txt /tmp/julia-packages.txt

USER root
# Change ownership of the copied files to NB_UID
USER root
RUN chown ${NB_UID}:${NB_UID} /tmp/setup-julia-packages.bash /tmp/julia-packages.txt

USER ${NB_UID}

# Run the setup script to install Julia packages and the IJulia kernel
RUN /tmp/setup-julia-packages.bash /tmp/julia-packages.txt \
&& rm /tmp/julia-packages.txt \
&& rm /tmp/setup-julia-packages.bash \
&& jupyter kernelspec list
&& jupyter kernelspec list

0 comments on commit da8f375

Please sign in to comment.