Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
Dive-into-DL-PyTorch
Commits
09c8bacc
Unverified
Commit
09c8bacc
authored
Jun 24, 2020
by
Oblivion
Committed by
GitHub
Jun 24, 2020
Browse files
Run in a docker container (#140)
parent
e511fedd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
09c8bacc
FROM
node:alpine
RUN
npm i docsify-cli
-g
COPY
. /data
WORKDIR
/data
CMD
[ "docsify", "serve", "docs" ]
\ No newline at end of file
docs/README.md
View file @
09c8bacc
...
...
@@ -34,6 +34,24 @@ cd Dive-into-DL-PyTorch
docsify serve docs
```
### 方法三
如果你不想安装
`docsify-cli`
工具,甚至你的电脑上都没有安装
`Node.js`
,而出于某些原因你又想在本地浏览文档,那么你可以在
`docker`
容器中运行网页服务。
首先将本项目clone到本地:
```
shell
git clone https://github.com/ShusenTang/Dive-into-DL-PyTorch.git
cd
Dive-into-DL-PyTorch
```
之后使用如下命令创建一个名称为「d2dl」的
`docker`
镜像:
```
shell
docker build
-t
d2dl .
```
镜像创建好后,运行如下命令创建一个新的容器:
```
shell
docker run
-dp
3000:3000 d2dl
```
最后在浏览器中打开这个地址
`http://localhost:3000/#/`
,就能愉快地访问文档了。适合那些不想在电脑上装太多工具的小伙伴。
## 目录
*
[
简介
](
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment