From 3678bcc14336dda1b8c3f970d274a863b5dfa41a Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Wed, 18 Jul 2018 17:48:48 +0800 Subject: [PATCH] fix storage access denied --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36b86a07..829742bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,9 @@ 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 -WORKDIR /app -COPY . /app +WORKDIR /var/www +COPY . /var/www +RUN chmod -R 777 /var/www/storage RUN composer install RUN php artisan clear-compiled