nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

Update nodejs-docker-webapp.md

Open Durairaj opened this issue 3 years ago • 6 comments

Modified Docs to run as non-root user and with NODE_ENV set to production as part of docker best pratices

Durairaj avatar Feb 20 '22 20:02 Durairaj

@nodejs/docker

Should this file even exist on the website? Would users be better off if we referred them to some other resource?

Trott avatar Feb 20 '22 21:02 Trott

@nodejs/docker

Should this file even exist on the website? Would users be better off if we referred them to some other resource?

I personally have this file that will be helpful to a lot of devs who are coming to Nodejs for the first time or trying to get a quick play around.

Referring to another document link might be outdated or a few things can be deprecated in long run.

Durairaj avatar Feb 20 '22 21:02 Durairaj

We have https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md FWIW. Both NODE_ENV and the user is mentioned there. Can link to it?

SimenB avatar Feb 21 '22 00:02 SimenB

We have https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md FWIW. Both NODE_ENV and the user is mentioned there. Can link to it?

Its already linked

Durairaj avatar Feb 22 '22 00:02 Durairaj

Ok, then I'm not sure why we're duplicating information from it?

To answer the original "Should this file even exist on the website? Would users be better off if we referred them to some other resource?" I think probably just pointing to the docker-node repo makes sense? If there's any info missing we can add it.

SimenB avatar Feb 22 '22 08:02 SimenB

Yeah, what I'm suggesting is that we do something more like https://github.com/nodejs/nodejs.org/blob/0206636c47e19b4bed7cc635f400678d46298919/locale/en/knowledge/javascript-conventions/what-is-the-arguments-object.md (or for the web page version: https://nodejs.org/en/knowledge/javascript-conventions/what-is-the-arguments-object/)

Trott avatar Feb 22 '22 12:02 Trott

Closing this PR as it has been stale for 1 year. @Durairaj feel free to reopen and work on it if you're still interested :)

ovflowd avatar Mar 14 '23 09:03 ovflowd