From a8cb09145c64756212823cafb156bc8aaa84a11b Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Thu, 14 Sep 2023 19:10:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20php=208.2.5=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/php8/8.2.5/build/php/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/php8/8.2.5/build/php/Dockerfile b/apps/php8/8.2.5/build/php/Dockerfile index 5c0d285a..17cc27a8 100644 --- a/apps/php8/8.2.5/build/php/Dockerfile +++ b/apps/php8/8.2.5/build/php/Dockerfile @@ -5,27 +5,26 @@ ARG TZ ARG PHP_EXTENSIONS ARG CONTAINER_PACKAGE_URL - RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi - ADD ./extensions/install-php-extensions /usr/local/bin/ RUN chmod uga+x /usr/local/bin/install-php-extensions +RUN apk --no-cache add tzdata + COPY ./extensions /tmp/extensions WORKDIR /tmp/extensions RUN chmod +x install.sh \ && sh install.sh \ && rm -rf /tmp/extensions \ - -RUN apk --no-cache add tzdata \ +RUN apk add tzdata \ && cp "/usr/share/zoneinfo/$TZ" /etc/localtime \ && echo "$TZ" > /etc/timezone # Fix: https://github.com/docker-library/php/issues/240 -RUN apk add gnu-libiconv libstdc++ --no-cache --repository http://${CONTAINER_PACKAGE_URL}/alpine/edge/community/ --allow-untrusted +RUN apk add gnu-libiconv libstdc++ --no-cache --repository http://${CONTAINER_PACKAGE_URL}/alpine/edge/community/ --allow-untrusted ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php @@ -38,4 +37,4 @@ ENV COMPOSER_HOME=/tmp/composer RUN apk --no-cache add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data -WORKDIR /www \ No newline at end of file +WORKDIR /www