From c07a843eab9e5b15e86d6baa7b07e4a98238e489 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 10 Jul 2021 23:06:23 +0800 Subject: [PATCH] fix: iconv incomplete in alpine docker --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02619ef..00a66e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ FROM alpine -LABEL version="1.2" \ - maintainer="dnomd343" \ - description="echo client IP details" +LABEL maintainer="dnomd343" COPY . /var/www/echoIP ADD ./conf/docker/init.sh / -RUN apk --update add --no-cache nginx curl nodejs php7 php7-fpm php7-json php7-iconv php7-sqlite3 php7-openssl php7-mbstring && \ +ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php +RUN apk --update add --no-cache nginx curl nodejs php7 php7-fpm php7-json php7-iconv php7-sqlite3 php7-openssl php7-mbstring gnu-libiconv && \ mkdir -p /run/nginx && touch /run/nginx/nginx.pid && \ cp /var/www/echoIP/conf/docker/ip.conf /etc/nginx/echoip.conf && \ cp -f /var/www/echoIP/conf/docker/nginx.conf /etc/nginx/nginx.conf && \