0
votes

#change ownership of our applications RUN chown -R www-data:www-data /var/www/html/storage

RUN chown -R www-data:www-data /var/www/html

RUN chown -R www-data:www-data /var/www/html/bootstrap/cache

RUN chmod -R 755 /var/www/html/storage

RUN chmod -R 755 /var/www/html/bootstrap/cache

These are the above commands I added in my dockerfile to avoid permission error
but the issue is when i run this dockerfile in my local system it works fine for the application but when i deploy on cloud run and enter the wrong login info into my application it gives me this error " "message": "The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied"," So I believe there is no issue in the dockerfile may be some issue inthe configuration of cloud run. I don't know