Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ FROM jupyter/base-notebook:latest

USER root

ENV mainpath ./
RUN mkdir -p ${mainpath}

RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get install -y --no-install-recommends vim && \
Expand All @@ -20,18 +17,26 @@ RUN apt-get update && \

USER ${NB_USER}

ENV mainpath=/home/${NB_USER}

RUN echo 'alias julia="${mainpath}/.juliaup/bin/julia --project=${mainpath}"' >> ~/.bashrc
RUN curl -fsSL https://install.julialang.org | sh -s -- --yes

USER root
RUN ln -s ${mainpath}/.juliaup/bin/julia /usr/local/bin/julia

USER ${NB_USER}

COPY --chown=${NB_USER}:users ./src ${mainpath}/src
COPY --chown=${NB_USER}:users ./src/plutoserver ${mainpath}/plutoserver

RUN cp ${mainpath}/src/setup.py ${mainpath}/setup.py
RUN cp ${mainpath}/src/runpluto.sh ${mainpath}/runpluto.sh
RUN cp ${mainpath}/src/environment.yml ${mainpath}/environment.yml
RUN cp ${mainpath}/src/Project.toml ${mainpath}/Project.toml
RUN cp ${mainpath}/src/Manifest.toml ${mainpath}/Manifest.toml

RUN ${mainpath}/.juliaup/bin/julia --project=${mainpath}/src -e "import Pkg; Pkg.update(); Pkg.instantiate();"
RUN ${mainpath}/.juliaup/bin/julia -e "import Pkg; Pkg.update(); Pkg.instantiate();"

RUN jupyter lab build && \
jupyter lab clean && \
Expand Down
Loading
Loading