nginx-php-fpm icon indicating copy to clipboard operation
nginx-php-fpm copied to clipboard

Permissions to edit files from the host

Open ltroya-as opened this issue 3 years ago • 0 comments

Is it an easy way to edit permissions to edit from the host?

I tried this on my Dockerfile but it is not working:

RUN groupadd -g 1000 www
RUN useradd -u 1000 -ms /bin/bash -g www www

# src is where all my code lives.
COPY --chown=www:www src /usr/share/nginx/html

As soon as the image starts all the files change to this: image

Running this image on the server works perfectly. If it's possible I would like to use the same image on my development workflow too.

ltroya-as avatar Jun 07 '21 22:06 ltroya-as