fix storage permission deined

This commit is contained in:
Jack Goh
2018-07-18 19:17:00 +08:00
parent cd2e06c507
commit e93d801e73
+3 -2
View File
@@ -3,10 +3,11 @@ RUN apt-get update -y && apt-get install -y openssl zip unzip git zlib1g-dev net
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install pdo pdo_mysql zip gd
RUN chmod -R 777 storage/
WORKDIR /var/www
COPY . /var/www
ADD . /var/www
RUN chown -R www-data:www-data /var/www
RUN chmod -R 777 /var/www/storage
RUN chmod 755 /var/www
RUN composer install
RUN php artisan clear-compiled