Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edited Dockerfile of Docker(Nginx) deployment doc #4561

Merged
merged 2 commits into from Sep 21, 2019
Merged

Edited Dockerfile of Docker(Nginx) deployment doc #4561

merged 2 commits into from Sep 21, 2019

Conversation

vahdet
Copy link
Contributor

@vahdet vahdet commented Sep 10, 2019

Edited Dockerfile section of https://cli.vuejs.org/guide/deployment.html#docker-nginx

As shown in Vue v2 cookbook 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.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

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.
docs/guide/deployment.md Outdated Show resolved Hide resolved
Copy link
Member

@NataliaTepluhina NataliaTepluhina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this! 👍

@NataliaTepluhina NataliaTepluhina merged commit 69f7145 into vuejs:master Sep 21, 2019
@vue-bot
Copy link

vue-bot commented Sep 21, 2019

Hey @vahdet, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

sodatea pushed a commit that referenced this pull request Sep 24, 2019
* 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 latest

(cherry picked from commit 69f7145)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants