Skip to content

Commit

Permalink
hub image: add nix package manager (outside home dir)
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Aug 31, 2021
1 parent ccd2d04 commit 8d2f1b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hub.jupytearth.org-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,19 @@ RUN mkdir -p ${JULIA_PATH} \
&& chown ${NB_UID}:${NB_UID} ${JULIA_DEPOT_PATH}


# Install the nix package manager, step 1/2
RUN mkdir -m 0755 /nix \
&& chown jovyan /nix


# Switch user away from ROOT for the rest
USER ${NB_USER}


# Install the nix package manager, step 2/2
RUN curl -L https://nixos.org/nix/install | sh


# Prepare Julia
RUN julia --eval 'using Pkg; Pkg.add("IJulia"); using IJulia; installkernel("Julia");' \
&& julia --eval 'using Pkg; Pkg.instantiate(); Pkg.resolve(); pkg"precompile"'
Expand Down

0 comments on commit 8d2f1b0

Please sign in to comment.