Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
d2l-zh
提交
638d9df1
D
d2l-zh
项目概览
OpenDocCN
/
d2l-zh
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
d2l-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
638d9df1
编写于
9月 07, 2017
作者:
M
muli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docker build and install
上级
e1f10d75
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
6 deletion
+22
-6
Dockerfile
Dockerfile
+13
-5
chapter00_preface/install.md
chapter00_preface/install.md
+9
-1
未找到文件。
Dockerfile
浏览文件 @
638d9df1
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
RUN
git clone https://github.com/mli/gluon-tutorials-zh
&&
\
cd
gluon-tutorials-zh
&&
\
conda
env
create
-f
environment.yml
# 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
&&
\
mkdir
notebook
&&
\
jupyter notebook
--allow-root
--generate-config
&&
\
...
...
@@ -20,5 +21,12 @@ RUN source activate gluon && \
EXPOSE
8888
# copy notebooks
RUN
mkdir
/gluon-tutorials-zh
COPY
/ /gluon-tutorials-zh/
# sanity check
RUN
source
activate gluon
&&
notedown
--run
/gluon-tutorials-zh/chapter01_crashcourse/ndarray.md
CMD
source activate gluon && cd /gluon-tutorials-zh && \
jupyter notebook --ip=0.0.0.0 --allow-root
chapter00_preface/install.md
浏览文件 @
638d9df1
...
...
@@ -38,9 +38,17 @@ jupyter notebook
## 通过docker安装
首先你需要下载并安装
[
docker
](
https://docs.docker.com/engine/installation/
)
,然后运行下面命令即可
首先你需要下载并安装
[
docker
](
https://docs.docker.com/engine/installation/
)
。例如Linux下可以
```
bash
wget
-qO-
https://get.docker.com/ | sh
sudo
usermod
-aG
docker
# 然后logout一次
```
然后运行下面命令即可
```
bash
docker run
-p
8888:8888 muli/gluon-tutorials-zh
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录