Skip to content

Commit c4e9d16

Browse files
committed
split php cli & fpm images
1 parent cef5670 commit c4e9d16

File tree

5 files changed

+2002
-0
lines changed

5 files changed

+2002
-0
lines changed
File renamed without changes.
File renamed without changes.

fpm/Dockerfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM php:8.1-fpm-bullseye
2+
3+
# Install dependencies
4+
RUN apt-get update && apt-get install -yqq \
5+
libzip-dev \
6+
zip \
7+
unzip \
8+
wget \
9+
gnupg \
10+
git \
11+
libsodium-dev \
12+
libsodium23 \
13+
libcurl4-openssl-dev \
14+
libxslt1-dev \
15+
libxslt1.1 \
16+
libicu67 \
17+
libicu-dev \
18+
libpq-dev
19+
20+
RUN docker-php-ext-install pdo_mysql
21+
RUN docker-php-ext-install pdo_pgsql
22+
RUN docker-php-ext-install sodium
23+
RUN docker-php-ext-install xsl
24+
RUN docker-php-ext-configure intl
25+
RUN docker-php-ext-install intl
26+
RUN docker-php-ext-install zip
27+
RUN docker-php-ext-install pcntl
28+
RUN docker-php-ext-install pdo_pgsql
29+
RUN docker-php-ext-install exif
30+
RUN docker-php-ext-install soap
31+
RUN docker-php-ext-install bcmath
32+
RUN docker-php-ext-install curl
33+
34+
RUN pecl install xdebug
35+
36+
RUN pecl install -o -f redis \
37+
&& rm -rf /tmp/pear
38+
39+
COPY php.ini /usr/local/etc/php/php.ini
40+
41+
RUN find /usr/local/lib/php -name "xdebug.so" -exec echo 'zend_extension="{}"' >> /usr/local/etc/php/php.ini \;
42+
43+
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
44+
45+
#ARG OPCACHE_ENABLE
46+
#RUN sed -i "s/;opcache.enable=1/opcache.enable=1/" /usr/local/etc/php/php.ini
47+
#opcache.preload=/path/to/project/var/cache/prod/srcApp_KernelProdContainer.preload.ph
48+
49+
USER 1000:1000
50+
51+
CMD ["php-fpm"]

0 commit comments

Comments
 (0)