Open ltroya-as opened 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:
Dockerfile
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.
Is it an easy way to edit permissions to edit from the host?
I tried this on my
Dockerfile
but it is not working: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.