Update Dockerfile

This commit is contained in:
2025-07-25 08:10:59 -06:00
committed by GitHub
parent 7385b64f56
commit 2f4e2e3008

View File

@@ -1,29 +1,31 @@
FROM php:8.3-apache
# Install system dependencies for PHP extensions
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libfreetype6-dev \
libjpeg62-turbo-dev \
# Install system packages first
RUN apt-get update && apt-get install -y --no-install-recommends \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libzip-dev \
zip \
unzip \
libonig-dev \
libxml2-dev \
curl && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install -j"$(nproc)" \
gd \
curl \
&& rm -rf /var/lib/apt/lists/*
# Configure and install GD extension
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
# Install other PHP extensions
RUN docker-php-ext-install -j$(nproc) \
pdo \
pdo_mysql \
mysqli \
mbstring \
zip \
xml \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
curl
# Enable Apache mod_rewrite
# Enable Apache rewrite module
RUN a2enmod rewrite