-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
fix: dockerfile npm run build #61466
Conversation
Removed comment suggesting to use npm as an alternative but it's already configured by default.
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.
I'm guessing this should say pnpm run build
or yarn run build
but it can probably be removed
@styfle Yes, exactly right. The file had the following two days ago:
|
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.
I just pushed an update to add the if/else, thanks!
Beautiful! Thanks |
### Adding or Updating Examples - Example: [with-docker](https://github.com/vercel/next.js/tree/canary/examples/with-docker) - Update: The latest change introduced in #61466 on the building process of NextJS when the package manager is PNPM is currently throwing an error (it works for npm though). **To replicate the error:** 1. Checkout on the **with-docker** example 2. Install with PNPM so that it generates the pnpm-lock.yaml 3. Build the Docker image -> This will fail on the _builder stage_ step that runs `pnpm run build`. **Possible Solution:** - Run `corepack enable pnpm` before building with pnpm
Removed comment suggesting to use npm as an alternative but it's already configured by default.