hackernews
hackernews copied to clipboard
build: add docker file
Add docker file. I can't find docker file in all official repositories, I don't know which the best way is to build a nuxt project to a docker image. So I add dockerfile to this repo and tested:
- with node:alpine image size ~ 150mb
- with node:slim image size ~216mb
But there are two points I am not satisfied with this config:
- I am not sure this is the best way to build a nuxt project. Ie: build project in a folder and move the output to a new folder, and delete previous one.
- with non-root user, the image size reached to 1.2gb.
Anyone who can help with this PR is welcome!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| hackernews | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 9, 2024 6:01am |
Hi @maicss
You don't need Docker to build a Nuxt project actually
Sorry I don't understand. If I write an application, and I want to release a distribute to others, what's the best way to do that?
Like a local file manager, not a website.
I would say you share a git repository hosted on GitHub, GitLab, Bitbucket, etc.
My application needs to access user's local file or database, not a public website.