-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM jupyter/base-notebook
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libxt6 \
libxrender1 \
libgl1-mesa-glx \
imagemagick \
ffmpeg && apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV JULIA_VERSION=0.6.3
RUN mkdir /opt/julia-${JULIA_VERSION} && \
cd /tmp && \
wget -q https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.3-linux-x86_64.tar.gz && \
tar xzf julia-${JULIA_VERSION}-linux-x86_64.tar.gz -C /opt/julia-${JULIA_VERSION} --strip-components=1 && \
rm /tmp/julia-${JULIA_VERSION}-linux-x86_64.tar.gz
RUN ln -fs /opt/julia-${JULIA_VERSION}/bin/julia /usr/local/bin/julia
USER $NB_UID
ENV CONDA_JL_VERSION=3
ENV PYTHON=''
ENV GRDIR=''
RUN julia -e 'Pkg.init()' && \
julia -e 'Pkg.update()' && \
julia -e 'Pkg.add("IJulia")' && \
julia -e 'Pkg.add("Plots")' && \
julia -e 'Pkg.add("PyPlot")' && \
julia -e 'using GR' && \
julia -e 'using Plots' && \
julia -e 'using PyPlot'
RUN mkdir -p /home/jovyan/.jupyter/custom
COPY custom.css /home/jovyan/.jupyter/custom/