From 7e4cce9a28931de8b3959bcc33f00c8c28b4dce2 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Wed, 18 Jul 2018 17:56:53 +0800 Subject: [PATCH] update dockerfile to fix permission error --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 829742bc..1d8adebd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di RUN docker-php-ext-install pdo pdo_mysql zip gd WORKDIR /var/www COPY . /var/www -RUN chmod -R 777 /var/www/storage +RUN chown -R www-data:www-data /var/www RUN composer install RUN php artisan clear-compiled