Skip to content

Fix with-docker example dockerfile#33695

Merged
kodiakhq[bot] merged 6 commits intovercel:canaryfrom
krystxf:fix/with-docker-example
Jan 27, 2022
Merged

Fix with-docker example dockerfile#33695
kodiakhq[bot] merged 6 commits intovercel:canaryfrom
krystxf:fix/with-docker-example

Conversation

@krystxf
Copy link
Copy Markdown
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 examples Issue was opened via the examples template. label Jan 26, 2022
Comment thread examples/with-docker/Dockerfile Outdated
Comment thread examples/with-docker/Dockerfile Outdated
@krystxf krystxf requested a review from leerob January 26, 2022 15:21
Comment thread examples/with-docker/Dockerfile Outdated
Comment thread examples/with-docker/Dockerfile Outdated
@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
Copy Markdown

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
@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

examples Issue was opened via the examples 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