1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-29 01:31:31 +00:00

[PHP-FPM] use python bootstrapper to start PHP-FPM container

This commit is contained in:
FreddleSpl0it
2025-05-22 13:06:35 +02:00
parent 767d746419
commit f329549c2e
12 changed files with 247 additions and 225 deletions

View File

@@ -63,6 +63,7 @@ RUN apk add -U --no-cache autoconf \
samba-client \
zlib-dev \
tzdata \
python3 py3-pip \
&& pecl install APCu-${APCU_PECL_VERSION} \
&& pecl install imagick-${IMAGICK_PECL_VERSION} \
&& pecl install mailparse-${MAILPARSE_PECL_VERSION} \
@@ -72,7 +73,7 @@ RUN apk add -U --no-cache autoconf \
&& pecl clear-cache \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure exif \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ \
--with-jpeg=/usr/include/ \
--with-webp \
--with-xpm \
@@ -107,8 +108,18 @@ RUN apk add -U --no-cache autoconf \
pcre-dev \
zlib-dev
COPY ./docker-entrypoint.sh /
RUN pip install --break-system-packages \
mysql-connector-python \
jinja2 \
redis \
dnspython
COPY data/Dockerfiles/bootstrap /bootstrap
COPY data/Dockerfiles/phpfpm/docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["php-fpm"]