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

Fix with-docker example dockerfile #33695

Merged
merged 6 commits into from Jan 27, 2022
Merged

Fix with-docker example dockerfile #33695

merged 6 commits into from Jan 27, 2022

Conversation

krystxf
Copy link
Contributor

@krystxf krystxf commented Jan 26, 2022

Fixed dockerfile in with-docker example

Bug

  • error when executing docker build -t nextjs-docker . - yarn.lock file is missing

Documentation / Examples

  • edited to not fail when package-lock.json or yarn.lock are not found

  • example: use with-docker example

  • Make sure the linting passes by running yarn lint

@ijjk ijjk added the example bug Issue was opened via the example bug report template. label Jan 26, 2022
@krystxf krystxf requested a review from leerob January 26, 2022 15:21
@kodiakhq kodiakhq bot merged commit 33784f1 into vercel:canary Jan 27, 2022
@krystxf krystxf deleted the fix/with-docker-example branch January 27, 2022 17:32
@thomasledoux1
Copy link

Shouldn’t this be suggesting to use “npm ci” instead of “npm install”? It’s supposed to be better for running in CI/CD?

@ijjk ijjk mentioned this pull request Feb 1, 2022
1 task
natew pushed a commit to natew/next.js that referenced this pull request Feb 16, 2022
Fixed `dockerfile` in `with-docker`  example

## Bug

- error when executing `docker build -t nextjs-docker .` - `yarn.lock` file is missing

 ## Documentation / Examples

- edited to not fail when `package-lock.json` or `yarn.lock` are not found
- example: use `with-docker` example

- [x] Make sure the linting passes by running yarn lint

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
example bug Issue was opened via the example bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example from-docker : build fail : failed to compute cache key: "/yarn.lock" not found
4 participants