9697a6b20a
Add PHP upload size configuration to Dockerfile
28 lines
787 B
Docker
28 lines
787 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 echo "upload_max_filesize=20M" > /usr/local/etc/php/conf.d/uploads.ini \
|
|
&& echo "post_max_size=25M" >> /usr/local/etc/php/conf.d/uploads.ini
|
|
|
|
RUN php artisan storage:link
|
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|