fix: add ext-soap to Dockerfile and composer.json to resolve SoapClient not found error in production

This commit is contained in:
hamed
2026-07-08 09:37:19 +03:30
parent a2c809b7de
commit 5e5455cf8c
3 changed files with 117 additions and 2 deletions
+2 -2
View File
@@ -63,8 +63,8 @@ RUN set -eu; \
export MAKEFLAGS="-j$(nproc)"; \
retry() { for i in 1 2 3 4 5; do "$@" && return 0; echo "retry $i: $*"; sleep 5; done; return 1; }; \
retry apk add --no-cache nginx supervisor icu-libs \
&& retry apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev \
&& docker-php-ext-install pdo_mysql intl opcache \
&& retry apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev libxml2-dev \
&& docker-php-ext-install pdo_mysql intl opcache soap \
&& retry curl -sSLf "https://github.com/phpredis/phpredis/archive/refs/tags/${PHPREDIS_VERSION}.tar.gz" -o /tmp/phpredis.tar.gz \
&& mkdir -p /usr/src/php/ext/redis \
&& tar -xf /tmp/phpredis.tar.gz -C /usr/src/php/ext/redis --strip-components=1 \