@@ -3,11 +3,11 @@ FROM alpine:3.19
33# Install dependencies and fix issue in apache
44RUN apk --no-cache upgrade
55RUN apk add --no-cache \
6- apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6+ apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-fpm php83-tokenizer php83-ctype php83-session \
77 php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
88 php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
99 php83-mysqli php83-sockets php83-xmlreader php83-redis perl php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10- php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
10+ php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
1111 mysql-client tar curl imagemagick nodejs npm \
1212 certbot openssl git openssl-dev dcron \
1313 rsync shadow jq ncurses \
@@ -18,8 +18,16 @@ RUN apk add --no-cache \
1818RUN apk add --no-cache \
1919 unzip vim nano bash bash-doc bash-completion tree
2020
21- # BELOW LINE NEEDED TO SUPPORT PHP8 ON ALPINE 3.13+; SHOULD BE ABLE TO REMOVE THIS IN FUTURE ALPINE VERSIONS
21+ # STEPS TO ENSURE php and php-fpm/fcgi both work, which configure proper user/group for php-fpm and set the alpine Event MPM
22+ # (NOTE this needs to be modified with each new php version in 4 lines below)
2223RUN cp /usr/bin/php83 /usr/bin/php
24+ RUN cp /usr/sbin/php-fpm83 /usr/sbin/php-fpm
25+ RUN sed -i "s/^user = [^ ]*/user = apache/" /etc/php83/php-fpm.d/www.conf
26+ RUN sed -i "s/^group = [^ ]*/group = apache/" /etc/php83/php-fpm.d/www.conf
27+ RUN sed -i "/^LoadModule mpm_prefork_module modules\/ mod_mpm_prefork.so/ s/^/#/" /etc/apache2/httpd.conf
28+ RUN sed -i "/LoadModule mpm_event_module modules\/ mod_mpm_event.so/ s/# *//" /etc/apache2/httpd.conf
29+
30+ # Install composer for openemr package building
2331RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
2432
2533# TODO: Note that flex series 3.14+ needs to keep build-base package in (ie. not apk del it after done) for now
0 commit comments