Skip to content

Commit 57cec8c

Browse files
committed
doc: Update docker document.
1 parent a2bddf4 commit 57cec8c

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,25 @@ jobs:
6262
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
6363
6464
${{ steps.changelog.outputs.changelog }}
65+
66+
## Docker
67+
68+
通过 Docker 快速简单的部署文档网站。
69+
70+
```bash
71+
docker pull wcjiang/html-tutorial
72+
```
73+
74+
```bash
75+
docker run --name html-tutorial --rm -d -p 9665:80 wcjiang/html-tutorial:latest
76+
# Or
77+
docker run --name html-tutorial -itd -p 9665:80 wcjiang/html-tutorial:latest
78+
```
79+
80+
在浏览器中访问以下 URL
81+
82+
```bash
83+
http://localhost:9665/
6584
```
6685
6786
# Create Docker Image

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ docker pull wcjiang/html-tutorial
112112
```
113113

114114
```bash
115-
docker run --name html-tutorial --rm -d -p 9666:80 wcjiang/html-tutorial:latest
115+
docker run --name html-tutorial --rm -d -p 9665:80 wcjiang/html-tutorial:latest
116116
# Or
117-
docker run --name html-tutorial -itd -p 9666:80 wcjiang/html-tutorial:latest
117+
docker run --name html-tutorial -itd -p 9665:80 wcjiang/html-tutorial:latest
118118
```
119119

120120
在浏览器中访问以下 URL
121121

122122
```bash
123-
http://localhost:9666/
123+
http://localhost:9665/
124124
```
125125

126126
## Contributors

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"title": "HTML Tutorial",
66
"description": "HTML(超文本标记语言——HyperText Markup Language)是构成 Web 世界的一砖一瓦。它定义了网页内容的含义和结构。",
77
"license": "MIT",
8-
"version": "0.0.1",
8+
"version": "0.0.2",
99
"scripts": {
1010
"start": "idoc --watch",
1111
"build": "idoc"

0 commit comments

Comments
 (0)