V
V
Vanookay2020-05-21 14:12:52
Docker
Vanookay, 2020-05-21 14:12:52

How to write chmod Dockerfile?

I'm trying to set permissions for the folder and all subdirectories through the Dockerfile with the commands:

RUN chown -R root:root /var/www/html/
RUN chmod -R 777 /var/www/html/

But nothing happens, the rights do not change, how to write correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vanookay, 2020-05-21
@Vanookay

Achieved a solution to my problem by setting locally chmod -R 777 ./ for the project folder after git clone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question