You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploy.md
+10-12
Original file line number
Diff line number
Diff line change
@@ -139,19 +139,17 @@ frontend:
139
139
140
140
## Docker
141
141
142
-
>There is a simple demo for building docsify in docker.
142
+
- Create docsify files
143
143
144
-
?> tips: you can create all the files for this demo from [Quickstart](https://docsify.js.org/#/quickstart?id=initialize).
144
+
You need prepare the initial files instead of making in container.
145
+
See the [Quickstart](https://docsify.js.org/#/quickstart) section for instructions on how to create these files manually or using [docsify-cli](https://github.com/docsifyjs/docsify-cli).
145
146
146
-
- Preparing Docsify initial files
147
-
You need prepare the initial files (generated by run `docsify init ./docs`) instead of making in container.
147
+
```sh
148
+
index.html
149
+
README.md
150
+
```
148
151
149
-
```sh
150
-
index.html
151
-
README.md
152
-
```
153
-
154
-
- Dockerfile
152
+
- Create dockerfile
155
153
156
154
```Dockerfile
157
155
FROM node:latest
@@ -171,13 +169,13 @@ frontend:
171
169
Dockerfile
172
170
```
173
171
174
-
- Build Image
172
+
- Build docker image
175
173
176
174
```sh
177
175
docker build -f Dockerfile -t docsify/demo .
178
176
```
179
177
180
-
- Run
178
+
- Run docker image
181
179
182
180
```sh
183
181
docker run -itp 3000:3000 --name=docsify -v $(pwd):/docs docsify/demo
0 commit comments