Files
Sistema-Educativo-Laravel/Dockerfile
T
fernando 27af72b26e Force PHP upload limits via -d flags and fix Dockerfile layer order
Pass upload_max_filesize=50M and post_max_size=55M directly with -d
flags on every php process in supervisord. This is guaranteed to apply
regardless of ini scanning order or Docker layer caching.

Also move COPY docker/php.ini before COPY . . so the conf.d file is
always placed before the app code is copied, ensuring Docker does not
use a stale cached layer that skips the ini file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 08:20:46 -06:00

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
COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini
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 nginx.conf /etc/nginx/nginx.conf
COPY supervisord.conf /etc/supervisord.conf
EXPOSE 8080
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]