update dockerfile to fix permission error

This commit is contained in:
Jack Goh
2018-07-18 17:56:53 +08:00
parent 3678bcc143
commit 7e4cce9a28
+1 -1
View File
@@ -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