Receiving permission denied error with Docker, nginx, uwsgi setup. I can manually write files inside the container

Solution
RUN chown -R www-data:www-data /flask_app