11FROM jupyter/base-notebook:latest
22
3- RUN curl -fsSL https://install.julialang.org | sh -s -- --yes
4-
53USER root
64
75ENV mainpath ./
86RUN mkdir -p ${mainpath}
97
8+ RUN apt-get update && \
9+ apt-get install -y --no-install-recommends build-essential && \
10+ apt-get install -y --no-install-recommends vim && \
11+ apt-get install -y --no-install-recommends curl && \
12+ apt-get install -y --no-install-recommends git-all && \
13+ apt-get install -y --no-install-recommends unzip && \
14+ apt-get install -y --no-install-recommends gfortran && \
15+ apt-get install -y --no-install-recommends openmpi-bin && \
16+ apt-get install -y --no-install-recommends libopenmpi-dev && \
17+ apt-get install -y --no-install-recommends libnetcdf-dev && \
18+ apt-get install -y --no-install-recommends libnetcdff-dev && \
19+ apt-get clean && rm -rf /var/lib/apt/lists/*
20+
1021USER ${NB_USER}
1122
23+ RUN echo 'alias julia="${mainpath}/.juliaup/bin/julia --project=${mainpath}"' >> ~/.bashrc
1224RUN curl -fsSL https://install.julialang.org | sh -s -- --yes
1325
1426COPY --chown=${NB_USER}:users ./src ${mainpath}/src
@@ -26,22 +38,6 @@ ENV JULIA_DEPOT_PATH ${USER_HOME_DIR}/.julia
2638RUN julia -e "import Pkg; Pkg.Registry.update();"
2739RUN julia -e "import Pkg; Pkg.instantiate();"
2840
29- USER root
30-
31- RUN apt-get update && \
32- apt-get install -y --no-install-recommends build-essential && \
33- apt-get install -y --no-install-recommends vim && \
34- apt-get install -y --no-install-recommends git-all && \
35- apt-get install -y --no-install-recommends unzip && \
36- apt-get install -y --no-install-recommends gfortran && \
37- apt-get install -y --no-install-recommends openmpi-bin && \
38- apt-get install -y --no-install-recommends libopenmpi-dev && \
39- apt-get install -y --no-install-recommends libnetcdf-dev && \
40- apt-get install -y --no-install-recommends libnetcdff-dev && \
41- apt-get clean && rm -rf /var/lib/apt/lists/*
42-
43- USER ${NB_USER}
44-
4541RUN jupyter lab build && \
4642 jupyter lab clean && \
4743 pip install ${mainpath} --no-cache-dir && \
0 commit comments