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
0 0 vote
Article Rating

Tagged: Tags

Подписаться
Уведомление о
guest
0 Comments
Inline Feedbacks
View all comments