forked from pbutenee/ml-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (17 loc) · 820 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
FROM ubuntu:20.04
LABEL maintainer="Pieter Buteneers<[email protected]>"
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install nodejs
# Separate command to avoid location question for nodejs
RUN apt-get -y install python3-pip python-dev npm
#RUN npm name=configurable-http-proxy global=yes
RUN npm install -g configurable-http-proxy
RUN pip3 install jupyterhub jupyter numpy==1.22 scipy matplotlib scikit-learn pandas umap umap-learn seaborn pyarrow
COPY jupyterhub_config.py /etc/jupyterhub/jupyterhub_config.py
COPY release/1/ /home/cs/tutorial/
COPY create_users.py /tmp/create_users.py
RUN python3 /tmp/create_users.py 200 password
COPY jupyterhub /etc/init.d/jupyterhub
RUN update-rc.d jupyterhub defaults
CMD ["jupyterhub", "-f", "/etc/jupyterhub/jupyterhub_config.py"]