From efefeca41adc72aac8799885eed837399bfc0e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Mon, 5 Feb 2024 11:21:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(apk):=20=F0=9F=90=9E=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20iconv=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 防止服务器上传文件失败 --- swoole/7.4/Dockerfile | 2 ++ swoole/8.1/Dockerfile | 4 +++- swoole/8.2/Dockerfile | 2 ++ swoole/8.3/Dockerfile | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/swoole/7.4/Dockerfile b/swoole/7.4/Dockerfile index 6d94722..90e5817 100644 --- a/swoole/7.4/Dockerfile +++ b/swoole/7.4/Dockerfile @@ -34,6 +34,8 @@ RUN set -ex \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ && echo -e "\033[42;37m Build Completed :).\033[0m\n" +ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php + WORKDIR /srv/www EXPOSE 9501 \ No newline at end of file diff --git a/swoole/8.1/Dockerfile b/swoole/8.1/Dockerfile index b741561..be49610 100644 --- a/swoole/8.1/Dockerfile +++ b/swoole/8.1/Dockerfile @@ -21,7 +21,7 @@ RUN set -ex \ && php -v \ && php -m \ && php --ri swoole \ - && apk add --no-cache --repository https://mirrors.aliyun.com/alpine/edge/testing gnu-libiconv \ + && apk add --no-cache --repository https://mirrors.aliyun.com/alpine/edge/testing gnu-libiconv \ # ---------- some config ---------- && cd /etc/php81 \ # - config PHP @@ -34,6 +34,8 @@ RUN set -ex \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ && echo -e "\033[42;37m Build Completed :).\033[0m\n" +ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php + WORKDIR /srv/www EXPOSE 9501 \ No newline at end of file diff --git a/swoole/8.2/Dockerfile b/swoole/8.2/Dockerfile index 8572d34..5cf6701 100644 --- a/swoole/8.2/Dockerfile +++ b/swoole/8.2/Dockerfile @@ -34,6 +34,8 @@ RUN set -ex \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ && echo -e "\033[42;37m Build Completed :).\033[0m\n" +ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php + WORKDIR /srv/www EXPOSE 9501 \ No newline at end of file diff --git a/swoole/8.3/Dockerfile b/swoole/8.3/Dockerfile index 6fcd006..b7147da 100644 --- a/swoole/8.3/Dockerfile +++ b/swoole/8.3/Dockerfile @@ -34,6 +34,8 @@ RUN set -ex \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ && echo -e "\033[42;37m Build Completed :).\033[0m\n" +ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php + WORKDIR /srv/www EXPOSE 9501 \ No newline at end of file