代码拉取完成,页面将自动刷新
FROM ubuntu:16.04
# install python and conda
RUN apt-get update && apt-get install -y python3 git wget bzip2
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b
ENV PATH /root/miniconda3/bin:$PATH
# install deps
COPY environment.yml /
RUN conda env create -f environment.yml
# source activate need bash
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# setup notedown
RUN source activate gluon && \
pip install https://github.com/mli/notedown/tarball/master && \
mkdir notebook && \
jupyter notebook --allow-root --generate-config && \
echo "c.NotebookApp.contents_manager_class = 'notedown.NotedownContentsManager'" >>~/.jupyter/jupyter_notebook_config.py
EXPOSE 8888
# copy notebooks
RUN mkdir /gluon-tutorials-zh
COPY / /gluon-tutorials-zh/
# sanity check
# RUN source activate gluon && notedown --run /gluon-tutorials-zh/chapter_crashcourse/ndarray.md
# for chinese supports
ENV LANG C.UTF-8
CMD source activate gluon && cd /gluon-tutorials-zh && \
jupyter notebook --ip=0.0.0.0 --allow-root
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。