add php 8.2

This commit is contained in:
Shihaam Abdul Rahman 2024-06-29 14:34:43 +05:00
parent 03dbebd0b8
commit f7dbd3bff2
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
3 changed files with 2000 additions and 0 deletions

20
8.2/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
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 composer and some base extensions
# Configure and Install mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}
# Copy php.ini config
COPY php.ini /usr/local/etc/php/php.ini

17
8.2/docker-compose.yml Normal file
View File

@ -0,0 +1,17 @@
version: '3.5'
services:
#########################
fpm:
build:
context: .
dockerfile: Dockerfile
x-bake:
pull: true
platforms:
- linux/amd64/v1
- linux/amd64/v2
- linux/amd64/v3
- linux/arm/v7
- linux/arm64
hostname: fpm
image: git.shihaam.dev/dockerfiles/php-fpm:8.2

1963
8.2/php.ini Normal file

File diff suppressed because it is too large Load Diff