You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
FROM node:23-alpine
# ADDING STUFF HERE
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 ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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