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

build: add docker file #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

build: add docker file #140

wants to merge 1 commit into from

Conversation

maicss
Copy link

@maicss maicss commented Jan 9, 2024

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!

Copy link

vercel bot commented Jan 9, 2024

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

Copy link
Member

Atinux commented Jan 9, 2024

Hi @maicss

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

@maicss
Copy link
Author

maicss commented Jan 9, 2024

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.

Copy link
Member

Atinux commented Jan 9, 2024

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

@maicss
Copy link
Author

maicss commented Jan 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants