nginx-php-fpm
nginx-php-fpm copied to clipboard
Permissions to edit files from the host
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:
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.