docs icon indicating copy to clipboard operation
docs copied to clipboard

Incorrect construction of the Dockerfile in the Nodejs Tutorial

Open avgsurfman opened this issue 6 months ago • 1 comments

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.

avgsurfman avatar Jun 11 '25 00:06 avgsurfman

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?

thaJeztah avatar Jun 16 '25 10:06 thaJeztah