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"]
|
||||
Reference in New Issue
Block a user