fix permission denied issue

This commit is contained in:
Jack Goh
2018-07-18 18:45:59 +08:00
parent 98dc01f2ea
commit c60439d183
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ RUN docker-php-ext-install pdo pdo_mysql zip gd
WORKDIR /var/www
COPY . /var/www
RUN chown -R www-data:www-data /var/www
RUN chmod -Rf 777 /var/www/storage/logs/laravel.log
RUN composer install
RUN php artisan clear-compiled
+1
View File
@@ -15,5 +15,6 @@ COPY Caddyfile /etc/Caddyfile
WORKDIR /var/www/public
RUN chown -R www-data:www-data /var/www
RUN chown -R www-data:www-data /var/www/public
RUN chmod -Rf 777 /var/www/storage/logs/laravel.log
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]