9851c887ec
PHP (docker/php.ini via conf.d — loaded automatically, no -c flag needed): upload_max_filesize 2M -> 50M post_max_size 8M -> 55M Nginx: client_max_body_size 25M -> 55M Livewire (config/livewire.php published): temporary_file_upload rules max 12MB -> 50MB (max:51200) Laravel validation rules (all in KB): profile photo: 5120 (5MB) -> 51200 (50MB) posts image: 5120 (5MB) -> 51200 (50MB) anuncios image: 5120 (5MB) -> 51200 (50MB) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
733 B
Docker
28 lines
733 B
Docker
FROM php:8.2-fpm-alpine
|
|
|
|
RUN apk add --no-cache nginx nodejs npm supervisor \
|
|
&& docker-php-ext-install pdo pdo_mysql mysqli bcmath pcntl
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
RUN composer install --optimize-autoloader
|
|
|
|
RUN npm ci && npm run build
|
|
|
|
RUN mkdir -p storage/framework/{sessions,views,cache} \
|
|
&& mkdir -p storage/app/livewire-tmp \
|
|
&& chmod -R 775 storage bootstrap/cache
|
|
|
|
RUN php artisan storage:link
|
|
|
|
COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|