Updated the proostekrant to work properly again.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
FROM php:8.2-fpm-alpine
|
||||
|
||||
# Install dependencies for GD extension
|
||||
RUN apk add --no-cache --virtual .build-deps \
|
||||
freetype-dev \
|
||||
libjpeg-turbo-dev \
|
||||
libpng-dev \
|
||||
libwebp-dev \
|
||||
zlib-dev
|
||||
|
||||
# Install and enable GD extension with all image format support
|
||||
# Note: --with-png and --with-jpeg are now built-in, only need freetype and webp
|
||||
RUN docker-php-ext-configure gd \
|
||||
--with-freetype \
|
||||
--with-webp
|
||||
|
||||
# Install PHP extensions
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
gd \
|
||||
mysqli \
|
||||
pdo \
|
||||
pdo_mysql
|
||||
|
||||
# Clean up build dependencies
|
||||
RUN apk del .build-deps
|
||||
|
||||
# Also install runtime libraries for GD
|
||||
RUN apk add --no-cache \
|
||||
freetype \
|
||||
libjpeg-turbo \
|
||||
libpng \
|
||||
libwebp \
|
||||
zlib
|
||||
|
||||
# Copy PHP configuration
|
||||
COPY docker/php/php.ini /usr/local/etc/php/conf.d/custom.ini
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
CMD ["php-fpm"]
|
||||
@@ -0,0 +1,7 @@
|
||||
upload_max_filesize = 50M
|
||||
post_max_size = 52M
|
||||
memory_limit = 512M
|
||||
max_execution_time = 300
|
||||
display_errors = On
|
||||
error_reporting = E_ALL
|
||||
date.timezone = Europe/Brussels
|
||||
Reference in New Issue
Block a user