-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
34 lines (29 loc) · 1.12 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
FROM ubuntu:latest
# install the basics
RUN apt-get update && apt-get -y update
RUN apt-get install -y build-essential python3.6 python3-pip python3-dev
RUN pip3 -q install pip --upgrade
# install nodejs v12
RUN apt-get install -y curl dirmngr apt-transport-https lsb-release ca-certificates
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y gcc g++ make
RUN node --version
RUN npm --version
# copy dependency files
RUN mkdir src
WORKDIR src/
COPY requirements.txt .
# instsall Jupyter, domaincat requirements, and widget extensions
RUN pip3 install -r requirements.txt
RUN export NODE_OPTIONS=--max-old-space-size=4096
RUN jupyter labextension install jupyterlab-plotly@4.14.3 --no-build
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
RUN jupyter labextension install plotlywidget@4.14.3 --no-build
RUN jupyter lab build --dev-build=False --minimize=False
RUN npm cache clean --force
RUN unset NODE_OPTIONS
# Rest of Files copied
COPY . .
# Run jupyter lab
CMD ["jupyter", "lab", "--port=9999", "--no-browser", "--ip=0.0.0.0", "--allow-root"]