-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
35 lines (31 loc) · 1.08 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
FROM jupyter/base-notebook
USER root
# install dependencies
RUN apt-get update && apt-get install -yq --no-install-recommends \
vim \
build-essential \
python-dev \
libsm6 \
pandoc \
libxrender1 \
inkscape \
php5-cli php5-dev php-pear \
pkg-config \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install zeromq and zmq php extension
RUN wget https://github.com/zeromq/zeromq4-1/releases/download/v4.1.5/zeromq-4.1.5.tar.gz && \
tar -xvf zeromq-4.1.5.tar.gz && \
cd zeromq-* && \
./configure && make && make install && \
printf "\n" | pecl install zmq-beta && \
echo "extension=zmq.so" > /etc/php5/cli/conf.d/zmq.ini
# install PHP composer
RUN wget https://getcomposer.org/installer -O composer-setup.php && \
wget https://litipk.github.io/Jupyter-PHP-Installer/dist/jupyter-php-installer.phar && \
php composer-setup.php && \
php ./jupyter-php-installer.phar -vvv install && \
mv composer.phar /usr/local/bin/composer && \
rm -rf zeromq-* jupyter-php*
# Reset user from jupyter/base-notebook
USER $NB_USER