Compare commits

..

7 Commits

Author SHA1 Message Date
1f8a5f09c5
php 8.3 update 2024-09-22 23:01:45 +05:00
22892553de
php 7.3.33 add 2024-09-22 22:58:47 +05:00
2c1592d93e
php 8.3 basic dependecies 2024-09-22 22:58:17 +05:00
8398cc9ebd
add php 7.4 2024-06-29 15:24:57 +05:00
f7dbd3bff2
add php 8.2 2024-06-29 14:34:43 +05:00
03dbebd0b8
added php 8.3 2024-06-16 02:19:38 +05:00
0e44205407
build and push 2023-10-14 23:52:13 +05:00
16 changed files with 8023 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM php:7.3.33-fpm-bullseye
FROM php:7.4-fpm-bullseye
# Set build shell to bash, default has has some issues sometimes
SHELL ["/bin/bash", "-c"]
@ -15,6 +15,6 @@ RUN apt update \
# 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-configure pcntl --enable-pcntl \
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure zip \
&& docker-php-ext-configure gd \
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}

View File

@ -14,4 +14,4 @@ services:
- linux/arm/v7
- linux/arm64
hostname: fpm
image: git.shihaam.dev/dockerfiles/php-fpm:7.3.33
image: git.shihaam.dev/dockerfiles/php-fpm:7.4

20
8.0.2/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM php:8.0.2-fpm-buster
# 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.0.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.0.2

1963
8.0.2/php.ini Normal file

File diff suppressed because it is too large Load Diff

20
8.1/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM php:8.1-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.1/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.1

1963
8.1/php.ini Normal file

File diff suppressed because it is too large Load Diff

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

23
8.3/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
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
# 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

15
8.3/docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
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.3

1963
8.3/php.ini Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ for dir in */; do
cd "$dir"
# Run docker build and push
docker buildx bake --push
docker buildx bake --load
# Change back to the parent directory
cd ..

17
push-all.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#COMPOSE_DOCKER_CLI_BUILD=1
#DOCKER_BUILDKIT=1
#DOCKER_DEFAULT_PLATFORM=linux/amd64
# Loop through each directory
for dir in */; do
# Change into the directory
cd "$dir"
# Run docker build and push
docker buildx bake --push
# Change back to the parent directory
cd ..
done