hackernews icon indicating copy to clipboard operation
hackernews copied to clipboard

build: add docker file

Open maicss opened this issue 1 year ago • 5 comments
trafficstars

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!

maicss avatar Jan 09 '24 06:01 maicss

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

vercel[bot] avatar Jan 09 '24 06:01 vercel[bot]

Hi @maicss

You don't need Docker to build a Nuxt project actually

atinux avatar Jan 09 '24 09:01 atinux

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.

maicss avatar Jan 09 '24 09:01 maicss

I would say you share a git repository hosted on GitHub, GitLab, Bitbucket, etc.

atinux avatar Jan 09 '24 09:01 atinux

My application needs to access user's local file or database, not a public website.

maicss avatar Jan 09 '24 10:01 maicss