Incorrect construction of the Dockerfile in the Nodejs Tutorial
Is this a docs issue?
- [x] My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
I'm using Docker version 27.5.1. For whatever reason, the top line of the Dockerfile must be the FROM instruction with the image. The guide on the page suggests otherwise and uses ARG to grab a specific version of the nodejs image, which doesn't work on my end.
Location
https://docs.docker.com/guides/nodejs/develop/
Suggestion
Update the site, or embed GitHub content. I'd also remove the "src/index.js" statement and use something that doesn't depend on filenames like "node start" or "node run" scripts.
For whatever reason, the top line of the Dockerfile must be the FROM instruction with the image.
Just to be sure; can you confirm the daemon you're connected with is a current version? Can you provide the full output of docker version and docker info?