I am creating docker image with user. Also, I have applied all the permission to specific folder in which my code has been located.
Here is my Dockerfile
RUN useradd -r -d /flask_dir -s /bin/bash -c “Docker image user” flask_user
COPY flask_dir /flask_dir
RUN chown -R flask_user: /flask_dir
RUN chmod 777 /flask_dir
In flask_dir I have one folder called Certificates. At the time of running it creates certificates and store them into Certificates directory but I am not able to read that file it says me permission denied. But when I run my image with root user it works fine.
Does anyone knows what is wrong with custom user.