-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (30 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
37 lines (30 loc) · 1.27 KB
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
FROM ubuntu:18.04
MAINTAINER Xavier Garrido <xavier.garrido@lal.in2p3.fr>
RUN apt-get update && apt-get install -y \
automake \
build-essential \
curl \
gfortran \
git \
libcfitsio-dev \
libfftw3-dev \
libgsl-dev \
libchealpix-dev \
python3 \
python3-pip \
wget
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get -y install nodejs
RUN ln -sfn /usr/bin/python3 /usr/bin/python
RUN useradd -m -U psplay
USER psplay
ENV USER psplay
ENV PATH "/home/psplay/.local/bin:${PATH}"
WORKDIR /home/psplay
RUN python3 -m pip install --user --upgrade pip numpy cython
RUN python3 -m pip install --user psplay
RUN python3 -m pip cache purge
RUN jupyter labextension install plotlywidget jupyterlab-plotly
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager @jupyter-widgets/jupyterlab-sidecar
RUN jupyter labextension install jupyter-leaflet jupyter-leaflet-car
CMD ["jupyter", "lab", "--port=8888", "--no-browser", "--ip=0.0.0.0"]