Skip to content
Snippets Groups Projects
Commit ebdfcf8d authored by CANALS Gerome's avatar CANALS Gerome
Browse files

8.3-cli - Dockerfile now uses the Docker php extensions installer

parent a1300a4a
Branches master
No related tags found
No related merge requests found
# Use an official PHP runtime as a base image
FROM php:8.3-cli
# basic update
RUN apt-get update && \
apt-get install --yes --force-yes \
cron openssl
# installing the docker php extensions installer
RUN curl -sSLf \
-o /usr/local/bin/install-php-extensions \
https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && \
chmod +x /usr/local/bin/install-php-extensions
# PHP Configuration
RUN install-php-extensions mongodb
RUN install-php-extensions gettext iconv intl tidy zip sockets
RUN install-php-extensions pgsql mysqli
RUN install-php-extensions pdo_mysql pdo_pgsql
RUN install-php-extensions xdebug
RUN install-php-extensions redis
RUN install-php-extensions @composer
EXPOSE 80
COPY php.ini /usr/local/etc/php/
# canals/php:8.3-cli
## Image docker PHP
Basée sur l'image officielle `php:8.3-cli`
### Extensions PHP installées :
+ exif, gettext, iconv, intl, tidy, zip, sockets
+ dba, mysqli, pgsql, pdo_mysql, pdo_pgsql
+ mongodb, redis
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment