Skip to content

Commit 5fd7df0

Browse files
author
RhythmLian
authored
Update deploy.md
`docs` folder shoule be copied to `/docs` before set workdir in Dockerfile
1 parent bec187f commit 5fd7df0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/deploy.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,19 @@ frontend:
148148
index.html
149149
README.md
150150
```
151+
- move them to `docs` folder
152+
153+
```sh
154+
docs/index.html
155+
docs/README.md
156+
```
151157

152158
- Create Dockerfile
153159

154160
```Dockerfile
155161
FROM node:latest
156162
LABEL description="A demo Dockerfile for build Docsify."
163+
COPY docs /docs
157164
WORKDIR /docs
158165
RUN npm install -g docsify-cli@latest
159166
EXPOSE 3000/tcp
@@ -164,8 +171,8 @@ frontend:
164171
The current directory structure should be this:
165172

166173
```sh
167-
index.html
168-
README.md
174+
docs/index.html
175+
docs/README.md
169176
Dockerfile
170177
```
171178

0 commit comments

Comments
 (0)