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

Example Dockerfile does not copy .npmc / .yarnrc files #71827

Open
1 task done
H4kt opened this issue Oct 24, 2024 · 0 comments
Open
1 task done

Example Dockerfile does not copy .npmc / .yarnrc files #71827

H4kt opened this issue Oct 24, 2024 · 0 comments
Labels
examples Issue/PR related to examples

Comments

@H4kt
Copy link

H4kt commented Oct 24, 2024

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32566
  Available CPU cores: 16
Binaries:
  Node: 20.12.2
  npm: N/A
  Yarn: N/A
  pnpm: 9.10.0
Relevant Packages:
  next: 14.2.10 // An outdated version detected (latest is 15.0.1), upgrade is highly recommended!
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: standalone

Which example does this report relate to?

with-docker

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Currently example Dockerfile does not try to copy .npmrc / .yarnrc files which can lead to issues when installing packages

Expected Behavior

Example Dockerfile should attempt to copy those configuration files just like it attempts to copy the lock files

To Reproduce

  1. Add a package from a private registry to your NextJS project
  2. Copy the example Dockerfile into your project
  3. Attempt to build the docker image
@H4kt H4kt added the examples Issue/PR related to examples label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Issue/PR related to examples
Projects
None yet
Development

No branches or pull requests

1 participant