From 7385b64f56f67e48df3357cd4c94b0520c2de2f5 Mon Sep 17 00:00:00 2001 From: Donnie Date: Fri, 25 Jul 2025 08:08:44 -0600 Subject: [PATCH] Update Dockerfile --- Dockerfile | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index f51bb5a..7e0f41b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,29 @@ FROM php:8.3-apache -# Install dependencies for GD and other extensions -RUN apt-get update && apt-get install -y \ - libfreetype6-dev \ - libjpeg62-turbo-dev \ - libpng-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 \ - pdo \ - pdo_mysql \ - mysqli \ - mbstring \ - zip \ - xml \ - curl \ - && apt-get clean && rm -rf /var/lib/apt/lists/* +# Install system dependencies for PHP extensions +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libpng-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 \ + pdo \ + pdo_mysql \ + mysqli \ + mbstring \ + zip \ + xml \ + curl && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* # Enable Apache mod_rewrite RUN a2enmod rewrite