-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (39 loc) · 1.28 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
40
41
42
43
44
45
46
FROM quay.io/jupyter/base-notebook:latest
LABEL maintainer="Armin Sobhani <[email protected]>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
# Install all OS dependencies for a fully functional Server
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends \
# Common useful utilities
curl \
git \
nano-tiny \
tzdata \
unzip \
vim-tiny \
# git-over-ssh
openssh-client \
# gnuplot for g3p
gnuplot \
# nbconvert dependencies
# https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex
texlive-xetex \
texlive-fonts-recommended \
texlive-plain-generic \
# Enable clipboard on Linux host systems
xclip && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Switch back to jovyan to avoid accidental container runs as root
USER ${NB_UID}
# Install xeus-cling kernels and environment
RUN mamba install -yn base nb_conda_kernels \
&& mamba create -yn xeus-cling xeus-cling \
&& mamba clean -qafy
# Install g3p header and the example notebook
RUN mkdir -p /opt/conda/envs/xeus-cling/include/g3p
COPY include/g3p/gnuplot /opt/conda/envs/xeus-cling/include/g3p
COPY doc/tutorial.ipynb ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME} /opt/conda/envs/xeus-cling/include/g3p
USER ${NB_USER}