@@ -150,19 +150,18 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -Os -I${INSTALL_DIR}/include -I
150150 --enable-exif \
151151 --enable-ftp \
152152 --with-gettext \
153- --enable-mbstring \
153+ --enable-mbstring=shared \
154154 --with-pdo-mysql=mysqlnd \
155155 --with-mysqli \
156156 --enable-pcntl \
157157 --with-zip \
158158 --enable-bcmath \
159- --with-pdo-pgsql=shared \
159+ --with-pdo-pgsql \
160160 # Separate .so extension so that it is not loaded by default
161161 --enable-intl=shared \
162162 # Separate .so extension so that it is not loaded by default
163163 --enable-soap=shared \
164- # Separate .so extension so that it is not loaded by default
165- --with-xsl=${INSTALL_DIR} \
164+ --with-xsl \
166165 --with-ffi \
167166 # necessary for `pecl` to work (to install PHP extensions)
168167 --with-pear \
@@ -203,13 +202,8 @@ RUN cp $(php -r 'echo ini_get("extension_dir");')/* /bref-layer/bref/extensions/
203202# - /opt/bin | /opt/lib | /opt/lib64 (libraries compiled from source)
204203# into `/bref-layer` (the temp directory for the future Lambda layer)
205204COPY --link utils/lib-copy /bref/lib-copy
206- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bin/php /bref-layer/lib
207- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bin/php-fpm /bref-layer/lib
208- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bref/extensions/apcu.so /bref-layer/lib
209- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bref/extensions/intl.so /bref-layer/lib
210- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bref/extensions/opcache.so /bref-layer/lib
211- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bref/extensions/pdo_mysql.so /bref-layer/lib
212- RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bref/extensions/pdo_pgsql.so /bref-layer/lib
205+ RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bin /bref-layer/lib
206+ RUN php /bref/lib-copy/copy-dependencies.php /bref-layer/bref/extensions /bref-layer/lib
213207
214208# Create a symbolic link to the OpenSSL certificates file for BC purposes
215209RUN ln -s /etc/ssl/cert.pem /bref-layer/bref/ssl/cert.pem
0 commit comments