php-fpm/8.2/Dockerfile

24 lines
739 B
Docker

FROM php:8.2-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
# 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
RUN docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,intl,gd,zip}
# Copy php.ini config
COPY php.ini /usr/local/etc/php/php.ini