instruction: Create a Dockerfile for Node.js with production best practices
output: ```dockerfile
  from stdin for multi-node builders. docker/buildx#2656Improve kubernetes driver initialization. docker/buildx#2606Include target name in the error message when building multiple targets with Bake. docker/buildx#2651Optimize metrics handling to reduce performance overhead during progress tracking. docker/buildx#2641Display the number of warnings after completing a rule check. docker/buildx#2647Skip build ref and provenance metadata for frontend methods. docker/buildx#2650Add support for setting network mode in Bake files (HCL and JSON). docker/buildx#2671Support the --metadata-file flag when set along the --call flag. docker/buildx#2640Use shared session for local contexts used by multiple Bake targets. docker/buildx#2615, docker/buildx#2607, docker/buildx#2663Bug fixesImprove memory management to avoid unnecessary allocations. docker/buildx#2601Packaging updatesCompose support has been updated to v2.1.6. docker/buildx#25470.16.22024-07-25The full release notes for this release are available
  on GitHub.Bug fixesFix possible "bad file descriptor" error when exporting local cache to NFS volume docker/buildx#26290.16.12024-07-18The full release notes for this release are available
  on GitHub.Bug fixesFix possible panic due to data race in buildx bake --print command docker/buildx#2603Improve messaging about using --debug flag to inspect build warnings docker/buildx#26120.16.02024-07-11The full release notes for this release are available
  on GitHub.NewBake command now supports --call and --check flags and call attribute in target definitions for selecting custom frontend methods. docker/buildx#2556, docker/buildx#2576Experimental
  Bake now supports --list-targets and --list-variables flags for inspecting the definition and possible configuration options for your project. docker/buildx#2556Bake definition variables and targets supports new description attribute for defining text-based description that can be inspected using e.g. --list-targets and --list-variables. docker/buildx#2556Bake now supports printing warnings for build check violations. docker/buildx#2501EnhancementsThe build command now ensures that multi-node builds use the same build reference for each node. docker/buildx#2572Avoid duplicate requests and improve the performance of remote driver. docker/buildx#2501Build warnings can now be saved to the metadata file by setting the BUILDX_METADATA_WARNINGS=1 environment variable. docker/buildx#2551, docker/buildx#2521, docker/buildx#2550Improve message of the --check flag when no warnings are detected. docker/buildx#2549Bug fixesFix support for multi-type annotations during build. docker/buildx#2522Fix a regression where possible inefficient transfer of files would occur when switching projects due to incremental transfer reuse. docker/buildx#2558Fix incorrect default load for chained Bake targets. docker/buildx#2583Fix incorrect COMPOSE_PROJECT_NAME handling in Bake. docker/buildx#2579Fix index annotations support for multi-node builds. docker/buildx#2546Fix capturing provenance metadata for builds
  ```