Skip to content

Incorrect construction of the Dockerfile in the Nodejs Tutorial #22818

Open
@avgsurfman

Description

@avgsurfman

Is this a docs issue?

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions