From 7ad0fba2120424167b2b2fa7b474f6930ef68394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20P=C3=A9rez?= Date: Sun, 7 Jun 2026 01:20:11 -0600 Subject: [PATCH] fix: crear storage dirs antes de composer install segunda revision --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d4af7ff..36cece28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,10 @@ RUN echo "upload_max_filesize=50M" > /usr/local/etc/php/conf.d/uploads.ini \ WORKDIR /app COPY . . +RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/app/livewire-tmp storage/logs \ + && chmod -R 775 storage bootstrap/cache \ + && chown -R nobody:nginx storage bootstrap/cache + RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN composer install --optimize-autoloader @@ -21,10 +25,6 @@ RUN npm ci && \ VITE_REVERB_APP_KEY=fmoknd2swp3clsqfbdpg \ npm run build -RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/app/livewire-tmp storage/logs \ - && chmod -R 775 storage bootstrap/cache \ - && chown -R nobody:nginx storage bootstrap/cache - RUN rm -rf public/storage && php artisan storage:link COPY nginx.conf /etc/nginx/nginx.conf