-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (40 loc) · 1.9 KB
/
Dockerfile
File metadata and controls
46 lines (40 loc) · 1.9 KB
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
FROM nvidia/cuda:10.0-cudnn7-devel
LABEL org="One-Off Coder"
LABEL author="Jee Vang, Ph.D."
LABEL email="info@oneoffcoder.com"
LABEL website="https://www.oneoffcoder.com"
LABEL facebook="https://www.facebook.com/oneoffcoder"
LABEL twitter="https://twitter.com/oneoffcoder"
LABEL instagram="https://www.instagram.com/oneoffcoder/"
LABEL youtube="https://www.youtube.com/channel/UCCCv8Glpb2dq2mhUj5mcHCQ"
LABEL linkedin="https://www.linkedin.com/company/one-off-coder"
ENV NODE_HOME=/root/node-v14.4.0-linux-x64
ENV CONDA_HOME=/root/anaconda3
ENV PATH=${NODE_HOME}/bin:${CONDA_HOME}/bin:${PATH}
ENV NOTEBOOK_PASSWORD=""
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install wget supervisor libomp-dev -y \
&& apt-get clean
COPY requirements.txt /tmp/requirements.txt
RUN wget -q https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz -O /tmp/node-v14.4.0-linux-x64.tar.xz \
&& tar xf /tmp/node-v14.4.0-linux-x64.tar.xz -C /root \
&& node --version \
&& npm --version
RUN wget -q https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh -O /tmp/anaconda.sh \
&& /bin/bash /tmp/anaconda.sh -b -p $CONDA_HOME \
&& conda update --all \
&& conda update -c conda-forge jupyterlab \
&& conda install -c conda-forge nodejs \
&& pip install jupyterlab-commenting-service \
&& jupyter labextension install @jupyterlab/commenting-extension @jupyterlab/toc @krassowski/jupyterlab-lsp \
&& conda install -c conda-forge python-language-server r-languageserver \
&& pip install -r /tmp/requirements.txt \
&& python -m spacy download en_core_web_lg
COPY ubuntu/root/.jupyter /root/.jupyter/
RUN mkdir /root/ipynb \
&& mkdir /root/tensorboard
VOLUME ["/root/ipynb", "/root/tensorboard"]
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY supervisord.conf /etc/supervisor/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]