Good ideas I would point out avoid chown as a layer since it can take a really long time to run recursively.
The COPY --chown=node:node . /app command has a chown flag built in for that very purpose that is performant
COPY --chown=node:node . /app
Great tip! Thank you 😊
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good ideas I would point out avoid chown as a layer since it can take a really long time to run recursively.
The
COPY --chown=node:node . /app
command has a chown flag built in for that very purpose that is performantGreat tip! Thank you 😊