Skip to content

Commit d0e89ee

Browse files
committed
add curl for juliaup install
1 parent ac6c059 commit d0e89ee

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

Dockerfile

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
FROM jupyter/base-notebook:latest
22

3-
RUN curl -fsSL https://install.julialang.org | sh -s -- --yes
4-
53
USER root
64

75
ENV mainpath ./
86
RUN 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+
1021
USER ${NB_USER}
1122

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

1426
COPY --chown=${NB_USER}:users ./src ${mainpath}/src
@@ -26,22 +38,6 @@ ENV JULIA_DEPOT_PATH ${USER_HOME_DIR}/.julia
2638
RUN julia -e "import Pkg; Pkg.Registry.update();"
2739
RUN 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-
4541
RUN jupyter lab build && \
4642
jupyter lab clean && \
4743
pip install ${mainpath} --no-cache-dir && \

0 commit comments

Comments
 (0)