From 0991d4d906101cb2de16fa2d32fb514915a409ed Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sat, 16 Dec 2023 07:25:17 +0100 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7639945..3559793 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Default web root: ## Build from base Dockerfile ```Dockerfile -FROM jkaninda/nginx-php-fpm:8.1 +FROM jkaninda/nginx-php-fpm:8.3 # Copy laravel project files COPY . /var/www/html # Storage Volume @@ -106,13 +106,12 @@ VOLUME /var/www/html/storage WORKDIR /var/www/html -# Custom cache invalidation -ARG CACHEBUST=1 -RUN composer install - -RUN chown -R www-data:www-data /var/www/html/storage -RUN chown -R www-data:www-data /var/www/html/bootstrap/cache - +# Custom cache invalidation / optional +#ARG CACHEBUST=1 +# Run composer install / Optional +#RUN composer install +# Fix permissions +RUN chown -R www-data:www-data /var/www/html ``` @@ -143,12 +142,13 @@ stdout_logfile=/var/www/html/storage/logs/kafka.log ``` ### Storage permision issue -> docker-compose exec php-fpm /bin/bash - -> chown -R www-data:www-data /var/www/html/storage +```sh + docker-compose exec php-fpm /bin/bash + ``` +```sh +chown -R www-data:www-data /var/www/html/ +``` > chmod -R 775 /var/www/html/storage -> P.S. please give a star if you like it :wink: - - +> P.S. please give a star if you like it :wink: \ No newline at end of file