add php 7.4
This commit is contained in:
parent
f7dbd3bff2
commit
8398cc9ebd
20
7.4/Dockerfile
Normal file
20
7.4/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM php:7.4-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 zip libzip-dev 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-configure pcntl --enable-pcntl \
|
||||||
|
&& 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}
|
17
7.4/docker-compose.yml
Normal file
17
7.4/docker-compose.yml
Normal 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:7.4
|
Loading…
x
Reference in New Issue
Block a user