php82 ci docker update (#6003)
[openemr.git] / docker / library / dockers / dev-php-fpm-8-2 / Dockerfile
blob6bd396475f914c4d6d8ba10a978acf8c7c1cbfd2
2 # Copyright (C) 2018-2019 Brady Miller <brady.g.miller@gmail.com>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # php-fpm Dockerfile build for openemr development docker environment
10 # This docker is hosted here: https://hub.docker.com/r/openemr/dev-php-fpm/ <tag is 7.2>
12 FROM php:8.2-fpm-buster
14 # Update
15 RUN apt-get update
17 # Add mariadb-client package that is needed in the OpenEMR Backup gui, which does direct command mysql commands
18 # Add imagemagick that is needed for some image processing in OpenEMR
19 # Note this basically add 160MB of space to the docker, so would be nice for OpenEMR to not require this stuff
20 #  and instead rely on php scripts, if possible.
21 RUN apt-get install -y mariadb-client \
22                        imagemagick
24 # Add the php extensions (note using a very cool script by mlocati to do this)
25 ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
26 RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
27     install-php-extensions pdo_mysql \
28                            ldap \
29                            xsl \
30                            gd \
31                            zip \
32                            soap \
33                            gettext \
34                            mysqli \
35                            sockets \
36                            tokenizer \
37                            xmlreader \
38                            calendar \
39                            intl
41 # Copy over the php.ini conf
42 COPY php.ini /usr/local/etc/php/php.ini
44 # Needed to ensure permissions work across shared volumes with openemr, nginx, and php-fpm dockers
45 RUN usermod -u 1000 www-data