instruction: Create a Dockerfile for Node.js with production best practices
output: ```dockerfile
  from which you can start new containers or build new images. To do so, you will use the docker container commit command. Run the following command in a new terminal:
  
  $ docker container commit -m "Add node" base-container node-base
  View the layers of your image using the docker image history command:
  
  $ docker image history node-base
  You will see output similar to the following:
  
  IMAGE CREATED CREATED BY SIZE COMMENT
  d5c1fca2cdc4 10 seconds ago /bin/bash 126MB Add node
  2b7cc08dcdbb 5 weeks ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0B
  <missing> 5 weeks ago /bin/sh -c #(nop) ADD file:07cdbabf782942af0â¦ 69.2MB
  <missing> 5 weeks ago /bin/sh -c #(nop) LABEL org.opencontainers.â¦ 0B
  <missing> 5 weeks ago /bin/sh -c #(nop) LABEL org.opencontainers.â¦ 0B
  <missing> 5 weeks ago /bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH 0B
  <missing> 5 weeks ago /bin/sh -c #(nop) ARG RELEASE 0B
  Note the âAdd nodeâ comment on the top line. This layer contains the Node.js install you just made.To prove your image has Node installed, you can start a new container using this new image:
  
  $ docker run node-base node -e "console.log('Hello again')"
  With that, you should get a âHello againâ output in the terminal, showing Node was installed and working.Now that youâre done creating your base image, you can remove that container:
  
  $ docker rm -f base-container
  Base image definitionA base image is a foundation for building other images. It's possible to use any images as a base image. However, some images are intentionally created as building blocks, providing a foundation or starting point for an application.In this example, you probably wonât deploy this node-base image, as it doesnât actually do anything yet. But itâs a base you can use for other builds.Build an app imageNow that you have a base image, you can extend that image to build additional images.Start a new container using the newly created node-base image:
  
  $ docker run --name=app-container -ti node-base
  Inside of this container, run the following command to create a Node program:
  
  $ echo 'console.log("Hello
  ```