-
Notifications
You must be signed in to change notification settings - Fork 7.7k
added a guide for Dockerized Vue.js application #22776
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
RUN --mount=type=cache,target=/root/.npm npm ci | ||
RUN --mount=type=cache,target=/root/.npm npm install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: as this change is related to angular
guide, is that a relevant one for this PR?
Also why to favor npm install
over npm ci
(as it's also what's used below in the vuejs/develop.md
)? npm ci
will respect package-lock.json
that is, from my perspective, best practice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, @eunomie.
Yep, the change is relevant to keep all the docs I created consistent.
I personally prefer npm ci for clean installs, but since we’re dealing with developing Vue.js inside Docker here, npm install can be better to allow installing new dependencies on the fly during development.
Hi @kristiyan-velkov, great guide! I was wondering if there’s an example app repository that goes along with it? Usually, Docker guides come with something to clone and run — like in https://docs.docker.com/guides/tensorflowjs/ or https://docs.docker.com/guides/language-translation/ from the AI section provided by Harsh. Would be great to try it out hands-on! 🙂 |
This PR delivers a Vue.js focused guide for containerizing applications using Docker, aimed at streamlining development, testing, and deployment workflows. It follows modern DevOps practices and includes a complete CI/CD setup using GitHub Actions.
What's Included
Credits
Kristiyan Velkov, Docker Captain and experienced Front-end Engineer
CC: @craig-osterhout, @igor-alexandrov, @ajeetraina