-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (28 loc) · 946 Bytes
/
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
FROM openjdk:10.0.1-10-jdk
RUN apt-get update
RUN apt-get install -y python3-pip
RUN pip3 install --no-cache-dir notebook==5.5.* jupyterlab==0.32.* tornado==5.1.1
USER root
# Download the kernel release
RUN curl -L https://github.com/SpencerPark/IJava/releases/download/v1.2.0/ijava-1.2.0.zip > ijava-kernel.zip
# Unpack and install the kernel
RUN unzip ijava-kernel.zip -d ijava-kernel \
&& cd ijava-kernel \
&& python3 install.py --sys-prefix
# Set up the user environment
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/$NB_USER
RUN adduser --disabled-password \
--gecos "Default user" \
--uid $NB_UID \
$NB_USER
COPY . $HOME
RUN chown -R $NB_UID $HOME
RUN wget -O $HOME/ml-latest-small.zip http://files.grouplens.org/datasets/movielens/ml-latest-small.zip \
&& cd $HOME \
&& unzip ml-latest-small.zip
USER $NB_USER
# Launch the notebook server
WORKDIR $HOME
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]