Merge pull request #9 from GoteoFoundation/update/php8.3

update Dockerfile to use PHP 8.3 and composer
This commit is contained in:
David
2024-08-01 16:02:46 +02:00
committed by GitHub
2 changed files with 211 additions and 212 deletions
Generated
+200 -192
View File
File diff suppressed because it is too large Load Diff
+11 -20
View File
@@ -1,38 +1,29 @@
FROM php:8.2.19-fpm
FROM php:8.3-fpm
# System dependencies
RUN apt update && apt install -y \
curl
RUN apt-get update && apt install -y curl git
# PHP extensions
## OPcache
RUN docker-php-ext-install \
opcache
RUN docker-php-ext-install opcache
## XDebug
RUN pecl install \
xdebug \
&& docker-php-ext-enable \
xdebug
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
## PDO & mysql
RUN docker-php-ext-install \
pdo pdo_mysql
RUN docker-php-ext-install pdo pdo_mysql
# Zip
RUN apt install -y \
libzip-dev zip unzip \
&& docker-php-ext-install \
zip
RUN apt-get install -y libzip-dev zip unzip \
&& docker-php-ext-install zip
# Intl
RUN apt install -y \
libicu-dev \
&& docker-php-ext-install \
intl
RUN apt-get install -y libicu-dev \
&& docker-php-ext-install intl
# Composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
WORKDIR /app
WORKDIR /app