From af09fed2cfae17ae59563b0e84cba97588137223 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 15 Oct 2022 00:44:19 +0800 Subject: [PATCH] build: speed up decompression --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31b1b62..423f891 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ ENV ICONV="1.17" RUN apk add build-base php8-dev RUN wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-${ICONV}.tar.gz && tar xf libiconv-${ICONV}.tar.gz RUN wget https://php.net/distributions/php-$(php -v | awk 'NR==1 {print $2}').tar.gz && \ - tar xf php-*.tar.gz && mv ./php-*/ ./php8/ + tar xf php-*.tar.gz php-$(php -v | awk 'NR==1 {print $2}')/ext/iconv --strip-components 2 WORKDIR /libiconv-${ICONV}/ RUN ./configure && make && make install && cp ./lib/.libs/libiconv.so.2 /tmp/ -WORKDIR /php8/ext/iconv/ +WORKDIR /iconv/ RUN sed -i '/blahblah/i\return 0;' config.m4 && phpize && \ ./configure --with-iconv=/usr/local && make && mv ./modules/iconv.so /tmp/ RUN strip /tmp/*.so*