php-fpm/8.3/Dockerfile

24 lines
739 B
Docker
Raw Permalink Normal View History

2024-06-16 02:19:38 +05:00
FROM php:8.3-fpm-bullseye
# Set build shell to bash, default has has some issues sometimes
SHELL ["/bin/bash", "-c"]
# Install basic tools
## libzip-dev is required for php-zip
## libfreetype6-dev libjpeg62-turbo-dev are required for php-gd
RUN apt update \
&& apt install curl nano iputils-ping libzip-dev zip unzip libfreetype6-dev libjpeg62-turbo-dev -y --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y
2024-09-22 23:01:45 +05:00
# Install dependencies for intl extension
RUN apt-get update && apt-get install -y \
libicu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl
2024-09-22 22:58:17 +05:00
RUN docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,intl,gd,zip}
2024-06-16 02:19:38 +05:00
# Copy php.ini config
COPY php.ini /usr/local/etc/php/php.ini