Update Dockerfile
This commit is contained in:
46
Dockerfile
46
Dockerfile
@@ -1,27 +1,29 @@
|
|||||||
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 && \
|
||||||
libfreetype6-dev \
|
apt-get install -y --no-install-recommends \
|
||||||
libjpeg62-turbo-dev \
|
libfreetype6-dev \
|
||||||
libpng-dev \
|
libjpeg62-turbo-dev \
|
||||||
libzip-dev \
|
libpng-dev \
|
||||||
zip \
|
libzip-dev \
|
||||||
unzip \
|
zip \
|
||||||
libonig-dev \
|
unzip \
|
||||||
libxml2-dev \
|
libonig-dev \
|
||||||
curl \
|
libxml2-dev \
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
curl && \
|
||||||
&& docker-php-ext-install -j$(nproc) \
|
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
||||||
gd \
|
docker-php-ext-install -j"$(nproc)" \
|
||||||
pdo \
|
gd \
|
||||||
pdo_mysql \
|
pdo \
|
||||||
mysqli \
|
pdo_mysql \
|
||||||
mbstring \
|
mysqli \
|
||||||
zip \
|
mbstring \
|
||||||
xml \
|
zip \
|
||||||
curl \
|
xml \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
curl && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Enable Apache mod_rewrite
|
# Enable Apache mod_rewrite
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|||||||
Reference in New Issue
Block a user