Commit 69f7145
Edited Dockerfile of Docker(Nginx) deployment doc (#4561)
* Edited Dockerfile of Docker(Nginx) deployment doc
Edited `Dockerfile` section of https://cli.vuejs.org/guide/deployment.html#docker-nginx
As shown in [Vue v2 cookbook](https://vuejs.org/v2/cookbook/dockerize-vuejs-app.html) copying `package*.json` initially and running `npm install` in a separate step allows caching and reduces time elapsed during Docker build. Also the difference between the two docs will be reduced and be less confusing to those who end up with both of them.
* node version to latest1 parent 9c99ce2 commit 69f7145
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
| 398 | + | |
400 | 399 | | |
401 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | | - | |
| 405 | + | |
404 | 406 | | |
405 | | - | |
| 407 | + | |
406 | 408 | | |
407 | 409 | | |
408 | 410 | | |
| |||
0 commit comments