-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker configurations for PHP 7.4, 8.0, and 8.2
New Docker configuration files have been added to standardize the PHP 7.4, 8.0, and 8.2 environments. Additionally, the "composer.lock" file has been added to the .gitignore file, and the version range of the "orchestra/testbench" dependency in composer.json has been expanded. An .gitattributes file was added to ignore the .docker directory during export.
- Loading branch information
Aboubacar OUATTARA - kaira
committed
Feb 25, 2024
1 parent
16a79d5
commit e462d6d
Showing
8 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM php:8.0-fpm | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
zip \ | ||
unzip \ | ||
git \ | ||
curl \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
libonig-dev \ | ||
libxml2-dev \ | ||
libzip-dev \ | ||
pkg-config \ | ||
libssl-dev | ||
|
||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd pdo_mysql zip mbstring exif pcntl bcmath opcache gettext | ||
|
||
# install composer | ||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer | ||
|
||
WORKDIR /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM php:8.2-fpm | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
zip \ | ||
unzip \ | ||
git \ | ||
curl \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
libonig-dev \ | ||
libxml2-dev \ | ||
libzip-dev \ | ||
pkg-config \ | ||
libssl-dev | ||
|
||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd pdo_mysql zip mbstring exif pcntl bcmath opcache gettext | ||
|
||
# install composer | ||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer | ||
|
||
WORKDIR /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3.8" | ||
|
||
services: | ||
php74: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-php74 | ||
volumes: | ||
- ../:/var/www | ||
working_dir: /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3.8" | ||
|
||
services: | ||
php80: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-php80 | ||
volumes: | ||
- ../:/var/www | ||
working_dir: /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3.8" | ||
|
||
services: | ||
php82: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-php82 | ||
volumes: | ||
- ../:/var/www | ||
working_dir: /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.docker/ export-ignores |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
vendor/ | ||
.idea | ||
.phpunit.result.cache | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters