-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
61 lines (54 loc) · 1.73 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
FROM jupyter/base-notebook:8ccdfc1da8d5
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential=12.4ubuntu1 \
emacs \
git \
inkscape \
jed \
libsm6 \
libxext-dev \
libxrender1 \
lmodern \
netcat \
unzip \
nano \
curl \
wget \
gfortran \
cmake \
bsdtar \
rsync \
imagemagick \
gnuplot-x11 \
libxtst6 \
libgtk2.0.0 \
libgconf2-4 \
xvfb \
libxss1 \
libopenblas-base \
python3-dev && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN cd $HOME/work;\
pip install --upgrade pip; \
pip install matplotlib \
plotly \
ipywidgets \
nbconvert==5.4.0 \
psutil; \
git clone --single-branch -b master https://github.com/mathieuboudreau/orca-plotly-dockerfile.git;\
cd notebooks;\
chmod -R 777 $HOME/work/orca-plotly-dockerfile;
# Download orca AppImage, extract it, and make it executable under xvfb
RUN wget https://github.com/plotly/orca/releases/download/v1.1.1/orca-1.1.1-x86_64.AppImage -P /home
RUN chmod 777 /home/orca-1.1.1-x86_64.AppImage
# To avoid the need for FUSE, extract the AppImage into a directory (name squashfs-root by default)
RUN cd /home && /home/orca-1.1.1-x86_64.AppImage --appimage-extract
RUN printf '#!/bin/bash \nxvfb-run --auto-servernum --server-args "-screen 0 640x480x24" /home/squashfs-root/app/orca "$@"' > /usr/bin/orca
RUN chmod 777 /usr/bin/orca
RUN chmod -R 777 /home/squashfs-root/
WORKDIR $HOME/work/orca-plotly-dockerfile
USER $NB_UID