diff --git a/Dockerfile b/Dockerfile index a289662..807e30a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,12 +53,9 @@ RUN docker-php-ext-configure gd --with-freetype --with-jpeg && \ # Copy files from build stage COPY --from=build /app /var/www -# Fix permissions -RUN adduser -D -g '' www && \ - chown -R www:www /var/www && \ +RUN chown -R www-data:www-data storage bootstrap/cache database \ chmod -R 755 /var/www/storage /var/www/bootstrap/cache -RUN chown -R www-data:www-data storage bootstrap/cache database # Copy custom nginx and supervisord config COPY deploy/nginx.conf /etc/nginx/nginx.conf