wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
342 stars 245 forks source link

Permissions to edit files from the host #33

Open ltroya-as opened 3 years ago

ltroya-as commented 3 years ago

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.