diff --git a/dockerfile b/Dockerfile similarity index 70% rename from dockerfile rename to Dockerfile index d80af86..1921797 100644 --- a/dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM php:8.3-apache -# Install commonly used PHP extensions +# Install system dependencies RUN apt-get update && apt-get install -y \ libpng-dev \ libjpeg-dev \ @@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \ libonig-dev \ libxml2-dev \ curl \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install \ pdo \ pdo_mysql \ @@ -19,7 +20,8 @@ RUN apt-get update && apt-get install -y \ zip \ gd \ curl \ - xml + xml \ + && apt-get clean && rm -rf /var/lib/apt/lists/* # Enable Apache mod_rewrite RUN a2enmod rewrite