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

Volta Docker image #1858

Open
marcaureln opened this issue Aug 16, 2024 · 1 comment
Open

Volta Docker image #1858

marcaureln opened this issue Aug 16, 2024 · 1 comment

Comments

@marcaureln
Copy link

marcaureln commented Aug 16, 2024

Volta is a game changer in local development, but I recently experienced yarn version mismatch between our production Docker image (using node image) and our shared local environment. So, we decided to also use Volta in production within our Dockerfile, thus no need to update Docker build args. Don't be mistaken, we are not frequently updating the same project node/yarn versions, but when working on multiple Node apps, you can quickly lose track.

This is an attempt to a volta Docker image: https://github.com/marcaureln/docker-volta

Have a look and let's make it through Docker official images 🙂

@geekact
Copy link

geekact commented Oct 22, 2024

You should use corepack enable in dockerfile that is supported by nodejs official.

And in package.json, type your yarn version

{
  "packageManager": "[email protected]"
}

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

No branches or pull requests

2 participants