-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
65 lines (55 loc) · 1.3 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-scipy-notebook
# JupyterLab 3.0.16
# Python 3.7.10
FROM jupyter/scipy-notebook:f9c990eb6295
USER root
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
fonts-dejavu \
gcc \
gfortran \
libgmp-dev \
libpari-dev \
pari-gp \
scilab \
tzdata \
wget \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER $NB_UID
# Science Platform Conda packages
RUN conda config --add channels conda-forge \
&& conda config --set channel_priority strict
RUN conda update -n base conda
RUN conda update --all
RUN conda install --quiet --yes \
'aplpy' \
'astropy' \
'astroquery' \
'awscli' \
'boto3' \
'gammapy' \
'gatspy' \
'gwcs' \
'jupyterhub==1.4.2' \
'nodejs' \
'photutils' \
'psycopg2' \
'pyspark' \
'pyvo' \
'reproject' \
'specutils' \
'vaex'
RUN conda clean --all --yes \
&& fix-permissions $CONDA_DIR
ENV CPATH=$CONDA_DIR/include \
JAVA_HOME=/usr/bin/java
RUN pip install \
pari_jupyter \
jupyterlab-sql \
scilab-kernel \
&& fix-permissions $CONDA_DIR
# Add conda env hook
COPY ./conda-activate.sh /usr/local/bin/before-notebook.d/