Replies: 1 comment
-
You would be better off no copying but rather use As for the user to use see the Best Practices doc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am new to docker,
I am not sure i know how to use the dockerfiles in this repo and i want to ask you all some nooby questions.
First part:
What's the difference between using the Dockerfile of the node:23-alpine, meaning literaly copying the content of it in github, and past it in our folder, then adding at the end of the dockerfile our stuff.
Or simply calling the base image, and then adding what we need in our own dockerfile ?
Second part:
I see in the dockerfile that a node group and user are created.
Should i switch to this user for security reasons ? The base dockerfile don't do it. is it a problem ?
Or should i create an other user in my own dockerfile and switch to it, after calling the
FROM node:23-alpine
What is commonly best security practice in this case ?
Thank you so much in advance !
Beta Was this translation helpful? Give feedback.
All reactions