Update Dockerfile

This commit is contained in:
2025-07-25 08:08:44 -06:00
committed by GitHub
parent d094afa394
commit 7385b64f56

View File

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