I am trying to dockerise my PHP application with Nginx and PHP7-FPM. Initially, I was getting a file not found error. But I found out that we need to give permission to folder of PHP files that is /var/www/html. I tried to run the command through docker-compose file as -
command:
- 'chmod -R 755 /var/www/html'
But I am getting error - /docker-entrypoint.sh: 38: exec: -chmod: not found