Skip to content

Commit

Permalink
Add Docker configurations for PHP 7.4, 8.0, and 8.2
Browse files Browse the repository at this point in the history
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 e462d6d commit e054d64
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7,683 deletions.
23 changes: 23 additions & 0 deletions .docker/Dockerfile-php74
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM php:7.4-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
Loading

0 comments on commit e054d64

Please sign in to comment.