Skip to content

Commit

Permalink
doc: Update docker document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 29, 2022
1 parent a2bddf4 commit 57cec8c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,25 @@ jobs:
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
## Docker
通过 Docker 快速简单的部署文档网站。
```bash
docker pull wcjiang/html-tutorial
```
```bash
docker run --name html-tutorial --rm -d -p 9665:80 wcjiang/html-tutorial:latest
# Or
docker run --name html-tutorial -itd -p 9665:80 wcjiang/html-tutorial:latest
```
在浏览器中访问以下 URL
```bash
http://localhost:9665/
```
# Create Docker Image
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ docker pull wcjiang/html-tutorial
```

```bash
docker run --name html-tutorial --rm -d -p 9666:80 wcjiang/html-tutorial:latest
docker run --name html-tutorial --rm -d -p 9665:80 wcjiang/html-tutorial:latest
# Or
docker run --name html-tutorial -itd -p 9666:80 wcjiang/html-tutorial:latest
docker run --name html-tutorial -itd -p 9665:80 wcjiang/html-tutorial:latest
```

在浏览器中访问以下 URL

```bash
http://localhost:9666/
http://localhost:9665/
```

## Contributors
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "HTML Tutorial",
"description": "HTML(超文本标记语言——HyperText Markup Language)是构成 Web 世界的一砖一瓦。它定义了网页内容的含义和结构。",
"license": "MIT",
"version": "0.0.1",
"version": "0.0.2",
"scripts": {
"start": "idoc --watch",
"build": "idoc"
Expand Down

0 comments on commit 57cec8c

Please sign in to comment.