Dockerfile – COPY with change of ownership

 

In order to change the owner of the copied files in the container, it is necessary to add the key “–chown” to the “COPY” command

 

Example:

COPY --chown=www-data:www-data ./my-site /var/www/html

Tagged: Tags

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments