Skip to content

Commit c05f3af

Browse files
committed
Copy additional *.ini and *.so files so that PHP extensions are properly loaded
1 parent 3f0d8af commit c05f3af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN docker-php-ext-install \
2525
sysvshm \
2626
xsl
2727

28-
RUN which php; php -v; php -m; php -i | grep etc
28+
RUN which php; php -v; php -m; php -i | grep ini
2929

3030
# @see https://hub.docker.com/_/python/
3131
FROM python:3.9.5-alpine
@@ -37,10 +37,11 @@ COPY --from=php-composer /usr/bin/composer /usr/bin
3737

3838
# copy PHP binary and required libs
3939
COPY --from=php /usr/local/bin/php /usr/bin
40-
COPY --from=php /usr/local/etc/php/* /usr/local/etc/php
40+
COPY --from=php /usr/local/etc/php /usr/local/etc/php
4141
COPY --from=php /usr/lib/*.so.* /usr/lib
42+
COPY --from=php /usr/local/lib/php /usr/local/lib/php
4243

43-
RUN php -v; php -m
44+
RUN php -v; php -m; php -i | grep ini
4445
ENV PHP_VERSION 8.0.7
4546

4647
# add an info script

0 commit comments

Comments
 (0)