加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
mli 提交于 2018-05-03 15:04 . Update Dockerfile
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化