fix: crear storage dirs antes de composer install segunda revision #1

Merged
fernando merged 1 commits from fix/storage-dirs into main 2026-06-07 07:25:20 +00:00
+4 -4
View File
@@ -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