Modificación del composer install

This commit is contained in:
2026-06-16 15:37:15 -06:00
parent 9f54230da7
commit 4d532fb57b
2 changed files with 100 additions and 55 deletions
+6 -5
View File
@@ -3,7 +3,6 @@ FROM php:8.2-fpm-alpine
RUN apk add --no-cache nginx nodejs npm supervisor icu-dev \
&& docker-php-ext-install pdo pdo_mysql mysqli bcmath pcntl intl
# Configurar PHP-FPM con límites de upload
RUN echo "upload_max_filesize=50M" > /usr/local/etc/php/conf.d/uploads.ini \
&& echo "post_max_size=55M" >> /usr/local/etc/php/conf.d/uploads.ini \
&& echo "memory_limit=256M" >> /usr/local/etc/php/conf.d/uploads.ini
@@ -11,6 +10,12 @@ RUN echo "upload_max_filesize=50M" > /usr/local/etc/php/conf.d/uploads.ini \
WORKDIR /app
COPY . .
# ← AQUÍ PRIMERO, antes de composer
RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache \
storage/app/livewire-tmp storage/logs bootstrap/cache \
&& 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 +26,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