Add docker/7.4/Dockerfile

This commit is contained in:
colin 2024-01-28 22:37:07 +00:00
parent 5b8490ec6a
commit c8b0313773
1 changed files with 27 additions and 0 deletions

27
docker/7.4/Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM php:7.4-fpm
## Install OS dependencies
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
zlib1g-dev \
vim \
libicu-dev \
fcgiwrap \
mariadb-client \
ca-certificates \
curl \
git && \
rm -rf /var/lib/apt/lists/*
## Enable and configure php modules
RUN docker-php-ext-configure intl && \
docker-php-ext-install intl && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install -j$(nproc) gd && \
docker-php-ext-install mysqli zip pdo_mysql bcmath && \
docker-php-ext-install opcache
RUN mkdir /var/www/sessions && \
chmod 777 /var/www/sessions